Relative Content

Tag Archive for phpxampp

Sometime this PHP code works and sometime don’t.. why?

I created a Php program in which a user will give his name and phone number and then the program will redirect to another Php file which is a preview page, after submitting it will go to the previous page and if everything is right it will show us ‘batch added successfully”, else it will show “duplicate value not possible”. Now yesterday this program worked, but today it is not working and fun fact, this same problem happened to my friend and i changed from $res = mysqli_query($conn, $sql); to $res = mysqli_query($conn,$sql); and it worked. But today both cases are not working in my program. Note : “phonenumber” is here UNIQUE in my “login” table and I am using XAMPP.

Add extension in Ubuntu 22:04 to XAMPP

Working on windows (10 or 11) to emulate a server I used MAMP and to add extension it is very simple. In your php.ini file, e.g, if you want to add curl extension uncomment the line
extension = php_curl.dll

Add extension in Ubuntu 22:04 to XAMPP

Working on windows (10 or 11) to emulate a server I used MAMP and to add extension it is very simple. In your php.ini file, e.g, if you want to add curl extension uncomment the line
extension = php_curl.dll

How to insert array into database?

I am currently working on a social media project. When a user is signing up they can select more than one option for a question about them. When this data is inserted into my xammp database it is showing as “array”. how would i make it so that the data is inserted into the same […]