Yeah, the coding hurts my eyes :P
Using just MySQL would be better.
Printable View
Yeah, the coding hurts my eyes :P
Using just MySQL would be better.
So shall I just code it so it connects to one database only?
Yeah, it should just connect to one type of database in my opinion, as your going to have a hell of a time throughout the script determining which function to use to query.
Better? :PPHP Code:<?php
$dbhost = 'localhost';
$dbuser = 'test';
$dbpass = 'changeme';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'changeme';
mysql_select_db($dbname);
?>