MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 2nd, 2000, 04:31 AM
Roman Kostinski Roman Kostinski is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 12 Roman Kostinski User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is it possible to access MySQL server (shareware version 3.22.32 runs under Windows 95 with Winsock 2) from other server via php3 ?

I try to access to MySQL database "test" via PHP script that runs on other server and all the time I get the message: Parse error: parse error in /www/myserver/test.php3 on line 2

Here is above mentioned PHP script:
<?php
mysql_connect(IP address of PC with MySQL under Windows95,username,password);
@mysql_select_db(test) or die( "Unable to select database");
?>

I have no problem to access database "test" via telnet from other server. PHP script runs on other server perfectly if I try to access local MySQL database on it:
<?php
mysql_connect(localhost,username,password);
@mysql_select_db(database name) or die( "Unable to select database");
?>

Could somebody help?
Thank you for your assistance.

Roman Kostinski
e-mail: roman@astelit.ru

Reply With Quote
  #2  
Old May 10th, 2000, 04:29 AM
wouterr wouterr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 27 wouterr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
if you get a parse error, this means your php code is wrong.
i suggest you leave the @ before mysql_connect

somewhat like:
$my_conn=mysql_connect(yourhost,name,pass);

on the end of the script you use
mysql_close($my_conn);

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > parse error


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway