gastooon Posted May 31, 2011 Share Posted May 31, 2011 Hello! I can't manage to get my forum to work. When I want a new topic to be made I got some code I will show in a second. But I just keep getting my own error message that just shows me something is wrong ... please help me figure it out. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/238019-php-forum-problem/ Share on other sites More sharing options...
Pikachu2000 Posted May 31, 2011 Share Posted May 31, 2011 Which error message would that be? Quote Link to comment https://forums.phpfreaks.com/topic/238019-php-forum-problem/#findComment-1223072 Share on other sites More sharing options...
gastooon Posted May 31, 2011 Author Share Posted May 31, 2011 ooh.. forgot to say that it's the "ERROR: You do not exist in the system." Quote Link to comment https://forums.phpfreaks.com/topic/238019-php-forum-problem/#findComment-1223075 Share on other sites More sharing options...
Pikachu2000 Posted May 31, 2011 Share Posted May 31, 2011 Would it be silly of me to guess you probably don't actually have a table named "(table name)"? Quote Link to comment https://forums.phpfreaks.com/topic/238019-php-forum-problem/#findComment-1223089 Share on other sites More sharing options...
gastooon Posted May 31, 2011 Author Share Posted May 31, 2011 I got the proper table in just changed it for linking it up here Quote Link to comment https://forums.phpfreaks.com/topic/238019-php-forum-problem/#findComment-1223096 Share on other sites More sharing options...
mikosiko Posted May 31, 2011 Share Posted May 31, 2011 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); Quote Link to comment https://forums.phpfreaks.com/topic/238019-php-forum-problem/#findComment-1223110 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.