Jump to content

get id not working?


techker

Recommended Posts

hey guys my query works fine like this

 

$q = "SELECT * FROM events";
$res = mysql_query($q);
$row = mysql_fetch_assoc($res);
echo (empty($row['d'])? "empty": "not empty"); 

 

now when i add a link to a page that will show the description in deatails i add

 

$id=$_POST['id'];
$q= "SELECT * FROM events WHERE id = ".$_GET['id']."
LIMIT 1 ,30 ";
$res= mysql_query($q);
$row= mysql_fetch_assoc($res);

 

the get it..it give my empty all the time?

 

Link to comment
https://forums.phpfreaks.com/topic/126502-get-id-not-working/
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.