Jump to content

[SOLVED] resource id 4


contra10

Recommended Posts

you'll need to brush up on some manual literature: mysql_query

 

mysql_query() returns a resource identifier, which in essence is just a handle or pointer to the actual resultset. in order to retrieve that resultset, you'll need to run one of the fetching functions on it. take your pick:

 

mysql_fetch_array

mysql_result

mysql_fetch_assoc

mysql_fetch_object

Link to comment
https://forums.phpfreaks.com/topic/167129-solved-resource-id-4/#findComment-881223
Share on other sites

You need to actually extract the data by using functions such as mysql_fetch_array, mysql_fetch_row etc...

 

$querye = "SELECT * FROM `deal` WHERE `category` = 'Outdoor' and `time` = '704'";
$result = mysql_query($querye) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
   echo $row['field_name'] . "
";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/167129-solved-resource-id-4/#findComment-881226
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.