When I use php 5 syntax as shown here, I get the following Fatal error:
$cxn = mysqli_connect($host,$user,$password,$dbname)
or die ("Couldn't connect to server.");
$query = "select brand from products";
$result = mysqli_query($cxn,$query)
or die ("Couldn't execute query.");
Fatal error: Call to undefined function: mysqli_connect() in /usr/home/ttheen01/www/htdocs/skate_test_01.php on line 17 (Line 17 is the first line above that connects to the database)
When I use php 4 syntax as shown below, everything works fine.
$cxn = mysql_connect($host,$user,$password)
or die ("Couldn't connect to server.");
mysql_select_db($dbname);
$query = "select brand from products";
$result = mysql_query($query)
or die ("Couldn't execute query.");