abraços

Posted 27/09/2011, 16:08
Posted 27/09/2011, 16:37
Posted 27/09/2011, 19:42
<option value="" selected>Selecione uma categoria</option> <?php $Qcat = mysql_query("SELECT * FROM categoria ORDER BY id DESC"); if ($result === false) die(mysql_error()); while ($id_cat = mysql_fetch_row($Qcat)) { echo "<option value='$id_cat[0]'>$id_cat[0] - $id_cat[2]</option>"; } ?> </select>
Posted 28/09/2011, 10:18
Posted 28/09/2011, 13:25
Posted 29/09/2011, 09:11
Posted 29/09/2011, 10:51
Posted 29/09/2011, 11:25
Posted 29/09/2011, 12:07
<?php $id =$_GET['id']; $Qcat = mysql_query("SELECT * FROM categoria WHERE id='$id'"); if ($result === false) die(mysql_error()); while ($id_cat = mysql_fetch_row($Qcat)) { echo "<option value='$id_cat[0]'>$id_cat[0] - $id_cat[2]</option>"; } ?>
Posted 29/09/2011, 12:47
Posted 29/09/2011, 12:51
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)