Hi there!
Hopefully only one of my few questions!
As part of my hosting package I have SQL and phpmyadmin, both of which I've become familiar with. PHP is enabled on my hosting and SQL queries are working directly...it's just getting the PHP to talk to it that's troubling me.
I have the principals of PHP/SQL via VTC Training Videos, plus plenty of reading material but before I proceed, I'm trying to get incredibly basic 'testing' PHP script to work. I'm using this from the VTC videos but it's not working and I wondered if perhaps things have changed since the release of these videos...I'm kind of guessing time has passed consider the win98 OS!
Here's the script I'm using, it's just supposed to clarify the table name:
<html>
<title> Test page </title>
<body>
<?
$db = mysql_connect("localhost");
mysql_select_db("biker4yz_klw", $db);
$query = "SELECT * FROM staff";
$result = mysql_query($query);
$table = mysql_field_table ($result, 0);
echo $table;
?>
</body>
</html>
I've contacted the webhosting and they're being less than useful.
I really look forward to any advice.
Many thanks!
Chris