So I have a HTML file, it uses PHP. I have data that is stored in the database, MySQL. I am trying to retrieve whatever is printed in a column in a table. I have tried a bunch of different things, but not having to much luck.
I have NEW to PHP.
Table is character_table, column is picture.
Here is what I have and its not exactly right. What exactly am I doing wrong and how to fix?
<?php
$result= mysql_query("SELECT * FROM character_table");
while($row = mysql_fetch_array($result)){
echo $row['picture'];
}
?>
Thank you very much.