Search the Community
Showing results for tags 'mysqli query'.
My code here works in some locations but not others. I believe it may be due to a faulty database connection. The $dbconnection gets returned from a function intended for the purpose and then passed to functions as needed. I am getting this error message for a $conn->query("SELECT * FROM formstable"); : (The warning goes on to specify the page and line number of course.) The code works within the database connection function just before my "return $conn;" statement. It works within a function "askQuery" called from one location but not anorher. It does not work a
Hi. Im scratching my head trying to understand the following issue: i have a built login/signup system. after user will login he will redirect to profile.php where i have a session with all the info i need. i want to run a simple query: $result = $mysqli->query("SELECT boardid FROM connector WHERE userid='$id'"); but for some reason this line kills my script. my $mysqli is working fine in all other php pages... so i try moving this line top to bottom but wherever the page meets this line the script is dead. what am i doing wrong? <?php /* Displays user information and