Jump to content

php forum problem!


gastooon

Recommended Posts

have you done something to debug your code?.... like echoing your query to see if it is valid or not?

 

      $query = "SELECT * FROM (table name) WHERE id='$u_id' AND firstname='$u_name' AND email='$u_email' AND password='$u_pass'";
       //echo your query to validate it
       echo "Query : " . $query;

       Or use die() or trigger_error() after the query ?  like
$sql = mysql_query($query) or trigger_error('Query failed: ' . mysql_error(), E_USER_ERROR);

 

also you can enable error reporting using:

error_reporting(E_ALL); 
ini_set("display_errors", 1);

Link to comment
https://forums.phpfreaks.com/topic/238019-php-forum-problem/#findComment-1223110
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.