I currently have
$tableName="thenameofthetable";
$someid=$_GET["someidthruget"];
$result = mysql_query("SELECT name,age FROM ". $tableName. " WHERE idp=". $someid);
Which looks really insecure.
How can I do it using a stored procedure which I think will make it a lot more secure?
Thanks