Jump to content

Small Syntax Error


unsider

Recommended Posts

I'm quite tired, and I'm having just the hardest time wrapping my head around this..

Not hard, just can't figure it out, I should probably get some sleep as well.

 

echo "<img src='getpicture.php?fid='" . $row["fid"] . '<br>';

 

Full code here:

 

<?php

include ("connect.php");

$query  = "SELECT fid FROM files";
$result = mysql_query($query) or die('Error, query failed');

echo '<table>';

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

echo "<img src='getpicture.php?fid='" . $row["fid"] . '<br>';


}

echo '</table>';

?>

Link to comment
https://forums.phpfreaks.com/topic/94146-small-syntax-error/
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.