> Group;
>
> There is something missing in my understanding of the php mysql_connect
> statement because I am getting a parse error as follows:
>
> http://cxkop.com/Jobs/job_list.php
> Parse error: parse error in
> /home/virtual/cxkop1365/home/httpd/html/Jobs/job_list.php on line 31

This is a php problem, not a mysql one.

> The database exists and is populated.
>
> I am doing the Devshed tutorial "jobs":
> http://www.devshed.com/Server_Side/MySQL/PerfectJob/page5.html
>
> The example code is thus:
> // $connection = mysql_connect($hostname, $user, $pass) or die
> ("Unable to
> connect!");
>
> My attempts are: (this is line 31, line 30 is commented out above)
> $connection = mysql_connect($cxkop@localhost, $cxkop, $!@@!) or die
> ("Unable to connect!");

The first parameter is a hostname, not a username@hostname; just use
localhost. You must also quote localhost:

$connection = mysql_connect("localhost", $cxkop, $!@@!) or die ("Unable to
connect!");


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to