snoopy6129
MIS
Hi All,
I'm trying to add a string into an already existing string. I want to pretty much have the following string
to attain this string exactly
When I run the joint string above, it gives me SQL syntax error. I really don't know if I'm joining the string correctly, or is it SQL that is giving me the problem?
Thank you in advance for your help
I'm trying to add a string into an already existing string. I want to pretty much have the following string
Code:
$sql_ad = "SELECT * FROM Ad WHERE";
$sql_ad = $sql_ad." StateIDKeyRef='$StateID'";
// sql_ad + "(another string)"
to attain this string exactly
Code:
$sql_ad = "SELECT * FROM Ad WHERE StateIDKeyRef='$StateID'";
When I run the joint string above, it gives me SQL syntax error. I really don't know if I'm joining the string correctly, or is it SQL that is giving me the problem?
Thank you in advance for your help