So I download this asp.NET code right from a site...
PHP Code:
' Create a new Connection object that connects to our SQL Server.
' It's running on a separate machine located at the IP address
' 10.2.1.214. The name of the database is "samples".
myConnection = New SqlConnection("Data Source=10.2.1.214;" _
& "Initial Catalog=samples;" _
& "User Id=*****;Password=*******;")
This code use a data source from a separate machine, and so it use the other machine's IP address. What should I put there if I'm using a local machine. I tried putting local IP address but nothing happens.
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
|