|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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); |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > parse error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|