Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php while select query

 while($row = $selectQuery1->fetch_array(MYSQLI_ASSOC)){
        // do what you want to do with each row returned by the select query
   		//$row is an associative array containing all the fields in your database as keys
   		//e.g.:
   			echo $row['product_name']."<br>";
   
    }
 
PREVIOUS NEXT
Tagged: #php #select #query
ADD COMMENT
Topic
Name
3+9 =