Hi thanks for the help, i change the query to get an error and i was getting this
Unknown column 'id' in 'where clause'
so i change the code to this
Code:
$detailpress = mysql_query("SELECT * FROM press WHERE pressid= '$pressid'") or die(mysql_error())
instead of this
Code:
$detailpress = mysql_query("SELECT * FROM press WHERE id= '$pressid'") or die(mysql_error());
if i do this i can see the first record on the database but if i do press.php?id=2 i still see tha same record, it wont change to that particular record
if i do this:
Code:
$detailpress = mysql_query("SELECT * FROM press WHERE id= $_GET['pressid']") or die(mysql_error());
i get this error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\xampp\htdocs\headinteractive\press.php on line 171
any ideas? thanks in advance.