Created
June 17, 2009 21:05
-
-
Save anonymous/131504 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$myServer = "localhost"; | |
$myUser = "root"; | |
$myPass = "***"; | |
$myDB = "optinet"; | |
mysql_connect($myServer, $myUser, $myPass) | |
or die("Couldn't connect to SQL Server on $myServer"); | |
mysql_select_db($myDB) | |
or die("Couldn't open database $myDB"); | |
$query = "SELECT clientid, company, phone, name, calltime, notes, callback, salesid, feature"; | |
$query .= "FROM clients "; | |
$result = mysql_query($query); | |
$numRows = mysql_num_rows($result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment