All pastes #613520 Raw Edit

search by lastname

public php v1 · immutable
·published 2007-07-11 00:53 UTC
rendered paste body
<?phpinclude('new_cust_info.php');include('../src/config.php');error_reporting(ALL);$con = db_connect();if (!$con)  {  die('Could not connect: ' . mysql_error());  }mysql_select_db($dbname, $con);$result = mysql_query("SELECT * FROM Customers WHERE LastName $lname");        while($row = mysql_fetch_array($result)) {                echo "                $row[FirstName] $row[LastName]                ";        };mysql_close($con);?>