Answers for "mysqli_fetch_array php"

CSS
0

mysql_fetch_array php

<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Impossible de se connecter : " . mysql_error());
mysql_select_db("mydb");

$result = mysql_query("SELECT id, name FROM mytable");

while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
   printf("ID : %s  Nom : %s", $row[0], $row[1]);
}

mysql_free_result($result);
?>
Posted by: Guest on May-28-2020
0

PHP mysqli_fetch_array function

<?php
mysqli_fetch_array($result);
?>
Posted by: Guest on June-17-2021
1

mysqli load result into array

$resource = $db->query("SELECT * FROM users WHERE userid = '".$userid."'");
while($row = $resource->fetch_array()) { $the_rows[] = $row; }
		/// later use like:
		//	foreach($the_rows as $row)
		//	{
		//		echo $row['product'];
		//	}
Posted by: Guest on July-29-2020

Code answers related to "mysqli_fetch_array php"

Browse Popular Code Answers by Language