mysql connection
Posted by: sharmel (---.haaga-helia.fi)
Date: March 02, 2010 09:00AM

Hi,
I am a new user of wampserver(2months), i have been using wamp server for my php scripts and it has been running very well. But i wanted to start with database, so i tried to check if mysql connection is active but i dont know the localhost,username and password. Pls. how can i get the(LOCALHOST,USERNAME,PASSWORD)?

Thanx

Options: ReplyQuote
Re: mysql connection
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: March 02, 2010 09:37AM

('localhost','root','')

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: mysql connection
Posted by: sharmel (---.dhcp.inet.fi)
Date: March 02, 2010 01:45PM

I have tried this code and it still not work:

<?php
$con = mysql_connect("localhost",´root´,""winking smiley;
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

// some code
?>
</body>
</html>

Options: ReplyQuote
Re: mysql connection
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: March 02, 2010 02:00PM

what colour is ur wamp icon

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: mysql connection
Posted by: sharmel (---.dhcp.inet.fi)
Date: March 02, 2010 04:57PM

my wamp icon shows white completely. it is working for my codes that are without mysql

Options: ReplyQuote
Re: mysql connection
Posted by: yfastud (Moderator)
Date: March 03, 2010 02:58AM


Options: ReplyQuote


Sorry, only registered users may post in this forum.