I have a database, and am trying to import into a table on my webpage, have found a few examples but they seem to always want to create the table, whereas my webpage already has the table. Would I be right in thinking I need to utilise ajax in some way?
You could use JQuery for AJAX requests and update your HTML table with new data from Ajax response. JQuery get function
You could echo your html5 table using php and that way you would be able to insert php variables. You would use MYSQL SELECT and Php mysql_fetch_array() to get these values from your Mysql table and then set them as php variables that you would then echo in your table. If you need example code please ask.
$dbhost='/*hostname*/';
$dbuser='/*database name*/';
$dbpass='/*database password*/';
$con=mysql_connect($dbhost , $dbuser , $dbpass);
if (! $con)
{
echo 'Could not CONNECT';
}
echo '';
mysql_select_db('/*user name*/');
echo '<table>';
echo '<tr>';
echo '<td>'.$firstname.'</td>';
echo '<td>'.$secondname.'</td>';
echo '</tr>';
echo '</table>';
$firstnameq="SELECT firstname FROM /*table*/";
$secondnameq="SELECT secondname FROM /*table*/":
$firstname=mysql_fetch_array($firstnameq);
$secondname=mysql_fetch_array($secondnameq);