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);
?>


Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
i in php for mysql fetch array in php mysql_fetch_array() method can be used for php fetch_array() if array equal to fetch mysql_fetch php php mysql fetch_assoc_array row returning 1 mysql_fetch_array($db_result, MYSQL_ASSOC) mysql_fetch_array($query) inurl .php?id= intext mysql_fetch_array() php mysql fetch array as objects php 7.4 mysql_fetch_array php fetch array record from mysql sqlsrv_fetch_array for mysql fetch mysql data in php array php mysql + while ($row=mysql_fetch_array($select)) { php mysql fetch to array mysql_fetch_array php mysq fetch asssoc array in php fetch db data in array php mysql php fetch_array mysql fetch array php mysql_fetch_array php 8 mysql_fetch_array in mysqli my_sqli_fetch_array() mysql_fetch_assoc with array php php mysql_fetch_assoc to array foreach php mysql_fetch_array php sqlsrv_fetch_array read all data php sqlsrv_fetch_array The mysql_fetch_array() function returns mysql_fetch_array mysqli how to use mysql_fetch_array in php fetch array in php mysql php mysql_fetch array php mysql_fetch_array() php mysql_fetch_array while mysql_fetch_array meaning in php php fetch array array fetch in php php mysql mysql_fetch_array php mysql mysql_fetch_array assoc php while result mysql_fetch_array db_fetch_array php php mysql_fetch_array example mysql_fetch_array use in php php mysql_fetch_array mysql_fetch_assoc php mysql_fetch_array mysqli_fetch_array php php mysql fetch array results php if mysql_fetch_array fetch_array in php fetch array in php sql php mysql fetch array while in php mysql_fetch_array with key while in php mysql_fetch_array php pg_fetch_array example php mysql while fetch array fetch_array php mysql_fetch_array() fetch array from select request sql php array from sql query mysql array of select php query fetch array php mysql fetch array php sql fetch array $result=sqlsrv_fetch_array($query); print php for php mysql_fetch_array mysqli_fetch_array trong php mysqli fetch_array mysql_fetch_array in php in array mysqli_fetch_array mysqli_fetch_array in php mysql fetch_array mysql_fetch_array php 7 php:return array through mysql db MYSQL_ASSOC, MYSQL_NUM, et MYSQL_BOTH mysql_fetch_array fetch array php fetch array
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source