Hi am using following format for queries
$sql = sprintf ( "SELECT
*
FROM
tablename
WHERE
userid = %s",
$userid
);
but found that other developer had used the following format
$sql = sprintf ( "SELECT " .
"* " .
"FROM " .
"tablename " .
"WHERE " .
"userid = %s ",
$userid
);
they both working fine.
which format is good practice?
Thanks