Hi,
I have a Sybase database on a local machines I am connecting and extracting info from locally using php. I need the same PHP file to access the data on another computer on the same network.
Here is an example of how I am doing it locally which works great:
<?php
$conn = odbc_connect("data source name", "username", "password");
if (!($conn)) {
echo "<p>Connection to DB via ODBC failed: ";
echo odbc_errormsg ($conn );
echo "</p>\n";
}
$resultset=odbc_exec($conn, "SELECT * FROM table_name");
odbc_result_all($resultset,"border=1");
odbc_close($conn);
?>
Can you help me modify the php so I can use it on another computer on the same network? In other words... the database would be hosted on the 'server' and I need to connect using a php file from a different computer on the same network.
Thanks for considering this project!
HI,
I having more than 5 Years experience as Software Developer in IT company.
I having 100% completion rate.
I will help in this task you need to use mysql_connect() function.
Please ping me or share me your screen
Thanks,
Sanjay
$15 USD за 1 день
5,0 (2 відгуки(-ів))
0,5
0,5
8 фрілансерів(-и) готові виконати цю роботу у середньому за $22 USD
Hi
Assuming the other computer is in the network and accessible from the current computer then I see no reason why you can't connect. You will have to create a new ODBC connection giving the same details as the one locally but a different name, then change it on the first parameter of odbc_connect.
We can work it out on teamviewer if you want.
Thanks
Rui
Dear Sir
I am a software engineer from Sri Lanka with a degree in Information technology from the university of Colombo. I have experienced in web application development using ajax, php And mysql . and also have a experience with android application development With java and standalone app development in java.
I take great pride in my believe I could produce exactly what you are Looking for. Look forward to discussing this opportunity with you further.
Kind regards
Asanka