Hi,
Let's say i have a very busy web site and runing this code. Would it produce results of someone else's selection rather than my selection($name)? For example: my code send "john" to function return results. What happens if x person sends "Dean" at same time as mine. Do i still get my result or other person's result?
Thanks
function func($name) {
$q = "SELECT * FROM products WHERE name='$name'";
$sql=mysql_query($q);
if(mysql_num_rows($sql)!=0) {
return $sql;
}
}
$rs=func($_POST["name"]);
while($code = mysql_fetch_array($rs)) {
echo $code[0];
echo $code[1];
echo $code[2];
}