Skip to content

Instantly share code, notes, and snippets.

@dewski
Forked from anonymous/gist:131504
Created June 17, 2009 21:09
Show Gist options
  • Save dewski/131508 to your computer and use it in GitHub Desktop.
Save dewski/131508 to your computer and use it in GitHub Desktop.
$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