PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 19th, 2000, 10:40 AM
munisp munisp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 4 munisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
When I try to execute the following php code to connect to my database using php 4.0

<?php

$conn = mysql_connect("localhost", "root","");
mysql_select_db("test");
if(my_sql_errno()) {
echo mysql_errno().": ".mysql_error()."n";
exit;
}
mysql_close($conn);
?>

I get the following error meesages
"Fatal error: Call to undefined function: mysql_connect() in C:Inetpubwwwroottest.php on line 10"

MySQl works perfectly on commandline but does not work from within my code. I have uncommented mysql's dll in my php.ini.
Could someone help .
How do I make PHP work with mysql? Can someone help.

Patrick

Reply With Quote
  #2  
Old April 24th, 2000, 07:52 AM
SiraX SiraX is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 4 SiraX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to SiraX
Well I see your point I have the same error msgs. I find out that PHP4 don't work with mysql on WinNT... (see http://www.php.net ) Well the PHP4 RC1 works. But now I'm using RedHat as little homeserver, there you don't have this problems URL

Reply With Quote
  #3  
Old April 24th, 2000, 09:21 AM
ranjeet ranjeet is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: thane
Posts: 50 ranjeet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to ranjeet Send a message via Yahoo to ranjeet
i couldn't install apache on win95 yaar

apache is showing running but when i open my browser with localhost .

it is giving me error as browser sent malformed request ..

can u pls tell me remedy for this

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP + Mysql on Windows NT 4.0, IIS 4.0

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap