Is this the correct way to do this
$varid = urldecode($id); $query = "SELECT * FROM $TableName where id = $varid";
Thanks
Doesnt want to exec query with the code like this. Pelase help
becuase you didnt ask it to run the query
I would use:
$varid = $HTTP_GET_VARS['id']; $query = "SELECT * FROM tablename where id = $varid"; $result = mysql_query($query); print $result;