At 1:42 PM -0500 3/9/01, Mike wrote:
>Whats wrong with this?
>$MaxID="select Max($Table.'ID') from $Table";
I assume you want to do:
$MaxID="select Max($TableID) from $Table";
as long as you don't have a variable called $TableID that is. if you
do then do:
$MaxID="select Max(".$Table."ID) from $Table";
the . operator for concat only works when you're not in a stting
variable. for example:
$var = "Hello ".$user;
you could also just do:
$var = "Hello $user";
PHP is smart enough to notice variables in strings. but periods in
strings are just periods.
-aaron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]