944,181 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2744
  • PHP RSS
Sep 12th, 2005
0

Another newbie Q&A

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
porchy33 is offline Offline
3 posts
since Aug 2005
Sep 12th, 2005
0

Re: Another newbie Q&A

Can someone help?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
porchy33 is offline Offline
3 posts
since Aug 2005
Sep 13th, 2005
0

Re: Another newbie Q&A

Hi porchy and welcome to Daniweb

I've moved this topic to the appropriate forum section for you, where I'm sure it will receive some assistance.
Team Colleague
Reputation Points: 229
Solved Threads: 149
Grandad
Catweazle is offline Offline
3,826 posts
since Mar 2004
Sep 13th, 2005
0

Re: Another newbie Q&A

Thanks.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
porchy33 is offline Offline
3 posts
since Aug 2005
Sep 13th, 2005
0

Re: Another newbie Q&A

Ouch, a simple typo...

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

should be

$conn = mysql_connect("localhost", "user", "password");
Reputation Points: 10
Solved Threads: 1
Junior Poster
sarahk is offline Offline
138 posts
since Apr 2005
Oct 7th, 2005
0

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.
otr
Reputation Points: 10
Solved Threads: 0
Newbie Poster
otr is offline Offline
1 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: session
Next Thread in PHP Forum Timeline: PHP poll





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC