Can somebody please at least tell me why this isnt being answered? Did I word it wrong? Let me try again:
My problem is this;
I have created a table in design view. It has two colums and it is sized perfectly. On the left column in the first cell it says "Title:" and to the right of it is a cell that I populate from a mysql database. The next row left cell says "Genre:" and to the right of it will be the genre per the mysql.
I am able to populate the "title" row just fine. I click on the empty cell in design view and then switch to code view and code the php like this:
<?php
$conn = mysql_connect("localhost", "root", "rolorolo");
mysql_select_db("mixposure", $conn);
$sql = 'SELECT * from mp3_table';
$result = mysql_query($sql, $conn) or die(mysql_error());
while ($row = mysql_fetch_array($result)){
echo $row['title'];
}
?>
That works great but the problem is that if I want to move on to the next row and populate the cell to the right of genre, I have to paste the entire code and reselect the database? I am hoping for a way that I can just have the connection code in there once. The tutorials I am going through tell me how to create the table dynamically but I want to use the table I already created in design view. I know this is confusing but I have been stuck on this problem for a long time. Any help would be greatly appreciated.
Thanks