|
Hello guys,
I need help with this code!
$q = "SELECT * FROM accounts";
$res = mysql_query($q);
$row = mysql_fetch_assoc($res);
echo (empty($row['d'])? "empty": "not empty");
now when i added a link to a page that will show the description in details , i did following coding there
$id=$_POST['id'];
$q= "SELECT * FROM accounts WHERE id = ".$_GET['id']."
LIMIT 1 ,30 ";
$res= mysql_query($q);
$row= mysql_fetch_assoc($res);
i am getting empty values .
thanks in advance
|