DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Another newbie Q&A (http://www.daniweb.com/forums/thread32179.html)

porchy33 Sep 12th, 2005 5:52 pm
Another newbie Q&A
 
Hi, I'm new to php and am trying to connect to mysql like this:

<?php
$conn = msql_connect("localhost", "user", "password");
echo $conn;
?>

But when i do I get this:

Fatal error: Call to undefined function msql_connect() in C:\www\PHP_mysql\testconn.php on line 2

I wonder why?

porchy33 Sep 12th, 2005 9:12 pm
Re: Another newbie Q&A
 
Can someone help?

Catweazle Sep 13th, 2005 12:59 am
Re: Another newbie Q&A
 
Hi porchy and welcome to Daniweb :D

I've moved this topic to the appropriate forum section for you, where I'm sure it will receive some assistance.

porchy33 Sep 13th, 2005 4:25 am
Re: Another newbie Q&A
 
Thanks.

sarahk Sep 13th, 2005 5:04 am
Re: Another newbie Q&A
 
Ouch, a simple typo...

$conn = msql_connect("localhost", "user", "password");

should be

$conn = mysql_connect("localhost", "user", "password");

otr Oct 7th, 2005 12:25 pm
Re: Another newbie Q&A
 
hmm.. i think it's an area for me .. even if I am not that new to PHP.

I've setup a few forums and I get all kinds of errors.. for some reson ... I don't understand .. all looks good.. localy everything works just fine.

Please look at the rrors and let me know if you ppl can help.

www.gsm-news.com
www.katavia.net
www.open-health.net
www.paintballmode.com


Thanks ppls.


All times are GMT -4. The time now is 5:06 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC