Hello,
I am new to PHP and MYSql so this may seem like a very easy question. I\'m attempting to do a query. When I use the following code the query returns no results:
$LastName = \"MILL%\";
mysql_select_db($database_UFAMySql, $UFAMySql);
$SqlString = printf (\"SELECT * FROM u01_caspenrl WHERE CENLAST LIKE \'%s\'\",$LastName);
$Recordset1 = mysql_query($SqlString, $UFAMySql) or die(mysql_error());
However, if I change the variable $SqlString to this, I get all the matching records.
$SqlString = \"SELECT * FROM u01_caspenrl WHERE CENLAST LIKE \'MILL%\'\";
What am I missing?
Thanks