RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1989 | Replies: 5 | Thread Tools  Display Modes
Reply
Join Date: Aug 2005
Posts: 3
Reputation: porchy33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
porchy33 porchy33 is offline Offline
Newbie Poster

Another newbie Q&A

  #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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 3
Reputation: porchy33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
porchy33 porchy33 is offline Offline
Newbie Poster

Re: Another newbie Q&A

  #2  
Sep 12th, 2005
Can someone help?
Reply With Quote  
Join Date: Mar 2004
Location: Australia
Posts: 3,735
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 
Rep Power: 15
Solved Threads: 140
Colleague
Catweazle Catweazle is offline Offline
Grandad

Re: Another newbie Q&A

  #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  
Join Date: Aug 2005
Posts: 3
Reputation: porchy33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
porchy33 porchy33 is offline Offline
Newbie Poster

Re: Another newbie Q&A

  #4  
Sep 13th, 2005
Thanks.
Reply With Quote  
Join Date: Apr 2005
Location: Auckland, New Zealand
Posts: 136
Reputation: sarahk is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
sarahk's Avatar
sarahk sarahk is offline Offline
Junior Poster

Re: Another newbie Q&A

  #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  
Join Date: Oct 2005
Location: GA
Posts: 1
Reputation: otr is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
otr otr is offline Offline
Newbie Poster

Re: Another newbie Q&A

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the PHP Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:16 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC