just echo this line and execute that query on your database area
$query = "SELECT * FROM contacts WHERE id = '$id'";
or post your table structure..
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
ya exactly,, i even don't see this before..
Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
You most likely have a problem with your query.
Replace:
$result = mysql_query($query);
with
$result = mysql_query($query) or die(mysql_error());
This will show the error.
kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
You are not selecting any database :) mysql_select_db("Databasename");
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356