I already caught the missing ;
the site actualyl does load, the problem is now connecting. At first the reason why it took so long was an incorrect server name....
now it connects with good speed, but returns the following at the top of the page
Warning: mysql_connect() [function.mysql-connect]: Access denied for user '454_comics'@'unlimitedmb.com' (using password: YES) in /hosted/subs/ulmb.com/a/n/andrew/public_html/testnav.php on line 5
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /hosted/subs/ulmb.com/a/n/andrew/public_html/testnav.php on line 8
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /hosted/subs/ulmb.com/a/n/andrew/public_html/testnav.php on line 14
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /hosted/subs/ulmb.com/a/n/andrew/public_html/testnav.php on line 43
So basically its not connecting and threrefor none of the queries can be carried out.
can someone give me an example of what EXACTLY needs to be written for the mysql_connect command?
EDIT:
you'd probably want to see the code to connect wouldn't you?
// connect to Mysql
$mysql = mysql_connect('ftp.ulmb.com', '454_comics', 'my password');
// select specific DB
$db = mysql_select_db('454_comics', $mysql);
// query string
$query = "SELECT MAX(`id`) FROM `arcnum`";
// execute query
$result = $last_comic_id = mysql_query($query, $mysql);
I'm assuming the server is the same place I host my site? I dont know what else it would be. my username defaults as the same name as the database (so in my case 454_comics) and my password (this web hosting provider forces you to have one) is correct, I know tHAT much.
I have a feeling I'm connecting to the wrong server...where would I find out the server name from within phpmyadmin, since thats what this site uses?
ANOTHER EDIT!!
I fixed it, It WAS the server name as I thought. now I'm left with just one error:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /hosted/subs/ulmb.com/a/n/andrew/public_html/testnav.php on line 43
so its back to the source code!
/* LINKS */
if($next_comic) $next = '<a href="?cid=' . $next_comic . '">Next</a>';
else $next = 'next';
if($previous_comic) $previous = '<a href="?cid=' . $previous_comic . '">Previous</a>';
else $previous = 'previous';
$sql = "SELECT 'arcnum'.* FROM 'arcnum' WHERE 'arcnum'.'id' = '$comic'";
$issue = mysql_query($sql, $conn);
?>
so line 43 would be
$issue = mysql_query($sql, $conn);
so what could this error mean and how would I fix it?
thanks AGAIN!
nEmo