Jump to content

Displaying MYSQL Results


johnowen

Recommended Posts

Hello, i've been at this for a while but this piece of code won't work. Maybe someone can help me, I know the connection to the database works fine.

 

<?php

$query = "SELECT * FROM tracking";
$result = mysql_query($query);
echo "ERROR: " . mysql_error();

while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {

			$string = "ID: " . $row['id'];
			echo $string;

		}

?>

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/165689-displaying-mysql-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.