Another newbie Q&A

Reply

Join Date: Aug 2005
Posts: 3
Reputation: porchy33 is an unknown quantity at this point 
Solved Threads: 0
porchy33 porchy33 is offline Offline
Newbie Poster

Another newbie Q&A

 
0
  #1
Sep 12th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 3
Reputation: porchy33 is an unknown quantity at this point 
Solved Threads: 0
porchy33 porchy33 is offline Offline
Newbie Poster

Re: Another newbie Q&A

 
0
  #2
Sep 12th, 2005
Can someone help?
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 3,826
Reputation: Catweazle is a jewel in the rough Catweazle is a jewel in the rough Catweazle is a jewel in the rough Catweazle is a jewel in the rough 
Solved Threads: 144
Team Colleague
Catweazle Catweazle is offline Offline
Grandad

Re: Another newbie Q&A

 
0
  #3
Sep 13th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 3
Reputation: porchy33 is an unknown quantity at this point 
Solved Threads: 0
porchy33 porchy33 is offline Offline
Newbie Poster

Re: Another newbie Q&A

 
0
  #4
Sep 13th, 2005
Thanks.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 138
Reputation: sarahk is an unknown quantity at this point 
Solved Threads: 1
sarahk's Avatar
sarahk sarahk is offline Offline
Junior Poster

Re: Another newbie Q&A

 
0
  #5
Sep 13th, 2005
Ouch, a simple typo...

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

should be

$conn = mysql_connect("localhost", "user", "password");
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1
Reputation: otr is an unknown quantity at this point 
Solved Threads: 0
otr otr is offline Offline
Newbie Poster

Re: Another newbie Q&A

 
0
  #6
Oct 7th, 2005
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC