Ive written code in php and have managed to connect to the database and show all the information from it except the image (BLOB) file. This is the code so far.....
How do I fix this please??
Code:
<?php $con = mysql_connect("localhost","root",""); if (!$con) { die ('Could Not Connect:' . mysql_error()); } mysql_select_db("membership",$con); $result = mysql_query ("SELECT * FROM members"); echo "<table border='1'> <tr> <th> headers </th> <th> headers1 </th> <th> headers2 </th> <th> headers3 </th> <th> headers4 </th> </tr>"; while ($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['photo'] . "</td>"; echo "<td>" . <img src=\"members.php?file={$row["photo"]}\">" . "</td>"; echo "<td>" . $row['headers'] . "</td>"; echo "<td>" . $row['headers1'] . "</td>"; echo "<td>" . $row['headers2'] . "</td>"; echo "<td>" . $row['headers3'] . "</td>"; echo "<td>" . $row['headers4'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?>
Comment