$tagsid=mysql_query("SELECT * FROM tags WHERE image=$image_id");
while($rowtagsid=mysql_fetch_array($tagsid)) {
$tagx = $rowtagsid['tag'];
$tagsname=mysql_query("SELECT * FROM tagnames WHERE id=$tagx");
while($rowtagsname=mysql_fetch_array($tagsname)) {
$codex = $rowtagsname['name'];
$options0=mysql_query("SELECT * FROM tagnames");
while($row08=mysql_fetch_array($options0)) {
$name08=$row08['name'];
?>
<input name='tagchange' type='checkbox' value='<?PHP echo $name08; ?>'<?PHP if($codex==$name08) echo 'checked'; ?>><span><?PHP echo $name08; ?></span>
<?PHP } } } ?>
The two tags in the tables are tag1 and tag5 but why does in need to copy it twice to display both and probably 3 times to diplay 3 can it not do in one single row of tags?
Here's error Just repeats it for the other tag does not do it on one line of tags crates a second!
And if I had one extra tag eg tag3 then it would display it 3 times like this
Also the error is this but I want to fix it not to delete it Heres the Error
<?PHP if($codex==$name08) echo 'checked'; ?>
Aucun commentaire:
Enregistrer un commentaire