How can I get all PHP exceptions, both ones generated by mysqli and normal php ones to be sent to me by email? The problem environment I am using a shared server at my ISP and don’t have access to …
Tag: mysqli
How to get user other data when they login in with thier username?
I’m a newbie in programming. I want to ask is there any way I can get user’s data from MySQL in another page when they login in only with their username and password. What I’m facing is I have a …
Should I manually check for errors when calling “mysqli_stmt_prepare”?
I’m using PHP and mysqli prepared statements. Is there a compelling reason to manually check for errors when executing mysqli_stmt_prepare()? To be more specific I am not asking about the final result just the prepare statement line. PHP manual puts this and only this line in an if statement. I would like to know how to properly check for errors
How to turn a table vertical using PHP
I am just learning PHP ,and I want to create a table that display echo data that I submit to my database , the problem I have that the table displayed horizontally by default as you see Horizontal default table this my script but I want it to be echoed vertically instead like this VERTICAL RESULT I WANT and I
how to repeat rows only once in many to many relationship
I’m working on many to many relationship on php I have 3 tables , movie table which contains movie name and movie id genre table which contains genre and genre id and movie_genre table which has …
AJAX: How to send back a success/error message
This is my first baby step with Ajax and I’m already struggling. I have a request that inserts into the DB but my code for the moment is behaving like all the requests are successful, but I want to be …
Else element not returning the correct result
I have created a select statement using php to return results to an HTML based on user input. The feedback is returned based on the input fields matching fields in a manually populated table. The …
How to append data obtained from database to array?
I would like to append data(“username”) from database to array(“array1”) and write all items from array. I have marked problematic part of code. If I run this code, I see: What can be wrong? Output …
Query with WHERE clause not working using mysqli bind_param() [closed]
I am creating a webservice where I need to get some data from mysql and retrieve it in a mobile app. I have been trying all day to do a query with a WHERE statement, but no success. The normal …
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, string given in while-loop
I currently have this code but it gives me the error mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, string given on line 22 The code is this: 1 $servername = “localhost”; 2 $…