a few syntax questions.
Posted: Fri May 20, 2005 1:05 pm
Hi,
I can't seem to find a reference to this and I'd like to understand what it means
it's part of a MySQL query written in php that I found on a post.
(i am new to php)
What do the periods mean?
Why are they necessary?
Periods don't seem to be needed all the time because i have used
something similar to:
$num = result_of_some_function();
echo "there are $num results";
which embedded the result of the function in the output.
Additionally, in my research so far from the mysql manual on the SELECT statement it indicates nothing about using `s.
i am curious about the following statement
what is the difference between FROM name_of_table and FROM `name_of_table`?
(using the `s) I have written queries with and without. (that's a little troubling if that syntax IS reqired)
Is it necessary is what I am asking.
Thanks for the input.
many regards,
wiz
I can't seem to find a reference to this and I'd like to understand what it means
it's part of a MySQL query written in php that I found on a post.
(i am new to php)
Code: Select all
$sql = "
SELECT *
FROM `name_of_table`
WHERE ".$query."
;"
$res = mysql_query($sql);Why are they necessary?
Periods don't seem to be needed all the time because i have used
something similar to:
$num = result_of_some_function();
echo "there are $num results";
which embedded the result of the function in the output.
Additionally, in my research so far from the mysql manual on the SELECT statement it indicates nothing about using `s.
i am curious about the following statement
Code: Select all
FROM `name_of_table`(using the `s) I have written queries with and without. (that's a little troubling if that syntax IS reqired)
Is it necessary is what I am asking.
Thanks for the input.
many regards,
wiz