Sorry to be posting without having previously searching through de forum... but I really didn't knew what to look for.
I'm a newbie.. and I have been doing some toturials on PHP an MySQL... I found something that I consider very intriguing on one of the tuturials...
<?
#there's some code before this...
$db = mysql_connect("localhost");
mysql_select_db("vinyldealers", $db);
echo $db."<BR>";
$addfeedback = "INSERT INTO feedback (user, email, spam, comments) VALUES('".$user."','".$email."','".$spam."','".$comments."')";
echo $addfeedback;
$result = mysql_query($addfeedback);
?>
(this is just the last part of the code, but it is probably enough)
How come this " $result = mysql_query($addfeedback); " makes the page work just fine? It successfully adds the entrys to the database... How come is the code executed if it is just placed on a variable? Shouldn't it only work only if the above line only contained " mysql_query($addfeedback); " How come is the variable executed???
Hope I made myself clear... probably not...
Thank you in advance, I really hope the question is not too dumb.