Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in line 146 Settings not found
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in class.database.php on line 146
Settings not found
Through `move_uploaded_file()` image file not save in the directory
I have a signup
form in HTML
, CSS
, and Bootstrap
. When the method goes to POST
, the action is fired and it is redirected to another page named handleSignup.php
that handles the queries. In the handleSignup
page firstly I fetch all data from the signup
form through $_POST
then start the validation and SQL
queries. I have successfully uploaded the data on phpmyadmin
but the image files are not saving in the directory.
How to set a JSON value with JSON_replace MySQL function?
my code:
i want to display old orders first from orders table based one company and followed by another company like wise
+———-+————+
| id | name |
+———-+————+
| 1 | storeone |
| 2 | storetwo |
| 3 | storethree|
+———-+————+
Show alert if unavailable slot within the time range
As stated above, i would like to appear alert when unavailable slot query from SQL , below the code were not working .
Will using a custom function name for a built in function slow down my script?
Ever since PHP went from 5+ to 7+ and changed all of the mysql_ tags, it made me wonder if I can create my own function name that I can use in multiple and if PHP ever decides to change that function again then all I have to do it edit my own custom function instead of having to replace them all in all of by files.
Why doesn’t PHP show my custom error message when mysqli_connect fails?
I am trying to connect to the database, and when I try with everything correct, the database connects, and everything is fine. But, when I try to connect using some wrong credentials, it throws an error message, and I am figuring out a way to hide the error message from the user.
Can’t see why a delete in mysql query does not work
Having issues realizing why this doesn’t work? The error i get is a standard can’t do this..
error -> MySQL server version for the right syntax to use near ‘DELETE FROM industry_manager WHERE category_id = 123456; INSERT INTO industry_m’ at line 1
The query is as follows on a mysql 5.7 server, i do have an old mysql client (50012 i think?) for the php side. However, if i paste this into phpmyadmin, it works? is it just a mysqli-client issue?
Php login not redirecting to index
So today I was following a tutorial on Mysql (because I’m trying to learn how to make a Login system in Mysql and not XML) and I finished it today. Anyway, When I submitted the Login form, it did nothing. My test username is “username” and my test password is “password” MD5 hashed. Here is my code:
How to send email to a user when his order is marked delivered using php mail function
i am finding it difficut to send email to a user when the order is updated (marked delivered) using php mail function. i think getting the email from the database is the problem but i do not know how to go about it. below is my code