[thelist] SQL question

Howard Cheng howcheng at ix.netcom.com
Wed Jan 22 16:17:01 CST 2003


Actually, PHP is nice in that when you define a string using double-quotes,
any variables in that string are interpreted.

Thus, given that:
    $a = "Hello";
    $b = "World!";

the following two statements achieve the same result:
    $myvar = "$a, $b";
    $myvar = $a . ", " . $b;

At 04:16 PM 1/22/2003 -0500, Joshua Olson wrote:
>Tom,
>
>The variables you've specified need to be concatenated with the SQL String.
>For example:
>
>... OR groomf LIKE '" + $searchname + "'"
>
>(I'm not really sure with the PHP concatenation operator is, so I'm assuming
>+.
>
>-joshua

::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list