Relative Content

Tag Archive for phpmysqlmysqli

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.

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.

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: