connect to mysql with php
Derick Centeno
aguilarojo at verizon.net
Fri Jan 19 08:29:05 MST 2007
Hi Pat:
Here are some links addressing your question which may help:
1. http://www.php-mysql-tutorial.com/connect-to-mysql-using-php.php
2. http://php.about.com/od/phpwithmysql/qt/mysql_connect.htm
3. http://www.siteground.com/tutorials/php-mysql/php_mysql_connection.htm
According to link 1, you may have left out an "n" and it may be a good
idea to follow the example and have an error statement embedded
reminding you when something breaks.
Applying the example in link 1 to your code the correction could be:
$conn = mysql_connect ("localhost", "root") or die ('Error connecting to
mysql');
Good Luck ... Derick.
------------------------------------------------------------------------
Pat kilgore wrote:
> I have YDL 5.0 installed on an iBook installed as a server with
> apache, php, and mysql selected as installed services.
> MySQL is running and from command line I have created database, table
> and data.
> Problem is connecting to mysql with php.
> The line
> $con = mysql_connect("localhost","root");
> in php page breaks the script and nothing after this line will execute.
> php functions run ok.
>
> Pat
>
> _________________________________________________________________
> Type your favorite song. Get a customized station. Try MSN Radio
> powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> yellowdog-newbie mailing list
> yellowdog-newbie at lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
>
More information about the yellowdog-newbie
mailing list