Jump to content

Selection problem


thefreebielife

Recommended Posts

<?php
//select the table
$result = mysql_query("select * from gifts order by gId WHERE gsite='cash'");
$i = 1;
//grab all the content
while($r=mysql_fetch_array($result))
?>

 

This code displays nothing. What am i doing wrong? I assume it has to be with the "where", but can't figure it out.

 

Thanks,

Jared

Link to comment
https://forums.phpfreaks.com/topic/66306-selection-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.