User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,944 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,880 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1788 | Replies: 5
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: 136
Colleague
Catweazle Catweazle is offline Offline
Grandad

Re: Another newbie Q&A

  #3  
Sep 12th, 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.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 8:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC