> $query="SELECT * FROM women WHERE 'id=$id'"; This would result in something like: SELECT * FROM women WHERE 'id=1'
Do you see the error here? $query="SELECT * FROM women WHERE id=$id"; or $query="SELECT * FROM women WHERE id='$id'"; would be better... Tips for debugging this in PHP: - print the $query to see it with substituted variables - do a echo "<pre>"; print_r($result); //var_dump($result); also prints the types echo "</pre>"; To see what's inside any kind of variable.... Regards, Jigal. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]