Category : mysqli

So, i’m developing a website that display products and compare them, in this case computers, this products are displayed in the index page and their info are from a database. My main problem in the comparison system is how to send a id by selecting a product, how can i select the product to store ..

Read more

COUNT() function doesn’t work on PHP Version 7.4.13 – Laravel 8 $img_arr= $request->input(‘imgs’); $img_arr input request is used to get a data array from a form. each request has more than 2 indexes count($img_arr) isn’t work to identify the total indexes of the array. hard coding the count() is working like $array = [‘car’,’bus’,’flight’]; count($array); ..

Read more

I am a beginner, I appreciate your help. I want the chg_tk "Change" button to update the data user selected in table in the database. Everything works fine, except that the data is not updated in the database. This is the request to the database. ` <?php /* Abrimos la base de datos */ include_once("./procesos/conexion2.php"); ..

Read more

Over the past few weeks I’ve been working my way through the Udemy Beginner PHP and MySQL tutorial: https://www.udemy.com/course/php-mysql-tutorial/learn/lecture/49166#overview Up to today, I’ve successfully managed to modify the lesson codes to get the scripts to work with MySQLi, but I’ve reached an issue on chapter 97 (Access Levels – Basic Restriction). No matter what I ..

Read more

Using MySQL query to retrieve data from table with limit 9. It works fine but suddenly it shows warning Warning: mysqli_stmt::bind_param(): Number of variables doesn’t match number of parameters in prepared statement include ‘connection.php’; if ($stmt = $conn->prepare("SELECT id,type,location,title,description,price,approved,status,barea,uarea,photo,bhk FROM property ORDER by ID DESC LIMIT 9")) { $stmt->bind_param("ssssssssssss", $id,$type,$location,$title,$description,$price,$approved,$status,$barea,$uarea,$photo,$bhk); $stmt->execute(); $stmt->bind_result($id,$type,$location,$title,$description,$price,$approved,$status,$barea,$uarea,$photo,$bhk); while ($stmt->fetch()) Source: ..

Read more

These are my php codes for a database that im trying to build. . I am trying to create a form in php which accept input from users and save the details in database.Use validation through php(bakend).Example-: The category option in form1 will accept only string from user if user enter numeric value it will ..

Read more