MySQLTalk.org Forum Index MySQLTalk.org
MYSQL discussions groups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't get a MySQL connection either

 
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> MySQL on Win32
View previous topic :: View next topic  
Author Message
Vince Bravdica
Guest





PostPosted: Wed Feb 14, 2007 10:07 am    Post subject: Can't get a MySQL connection either Reply with quote



This is posted by another user and I am also trying for answers at the
MySql-PHP list:

When entering the following, I do not get a response in any fashion from the
developmental server on my system, just a blank page. Any ideas how I can
complete the connection?

<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head>
<title>MySql</title>
</head>
<body>
<?php
$dbServer='localhost';
$dbUser='root';
$dbPass='';
$dbName='test';
$link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not
connect");
print "Connected Successfully<br>";
mysql_select_db("$dbName") or die("Could not select database");
print "Database selected successfully<br>";
mysql_close($link);
?>
</body>
</html>


Vince Bravdica
President
Virtual Web Resources
<http://www.vwebr.net/> www.vwebr.net


_____

I am using the free version of SPAMfighter for private users.
It has removed 2457 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter <http://www.spamfighter.com> for free now!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> MySQL on Win32 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.