![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In revising some of my old MySQL scripts, existing syntax works, but I've no reason why (or where I got it from to begin with). Ex. Using MySQL in PHP to INSERT a row, the VALUES segment lists some values like this: $setsqlcall = "INSERT INTO a_table ( a_name, a_time ) VALUES ( '".$aname."', '".$atime."')"; Most examples show simply '$aname' and '$atime'. Why the '".$var."' syntax - extra pairings of 'double-quote & period ... period & double-quote' inside paired single-quotes. In searching for answers I have seen '"+$var+"' too. Could sometime explain this for me. (Also, if you know where explanation are to be found for this, I'd like to know that too.) Thanks, RG |
![]() |
| Thread Tools | |
| Display Modes | |
| |