Jump to content

why doesn't this work?


dachshund

Recommended Posts

anyone know what's wrong with this? $id is fine, that exists and echo's elsewhere normally. same with $s

 


<?php
                	$next = mysql_query("SELECT id FROM content WHERE id > $id AND live LIKE 0 AND section LIKE $s ORDER BY ASC LIMIT 1");
                	$result = mysql_fetch_array($next);
                	
                	echo $result;
                	?>  

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/194617-why-doesnt-this-work/
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.