I'm a little concerned about using the WHERE query within my PHP code, I've created the query and everything works perfectly - however i'm not the best with security issues, particularly the possibility of injections and cross-site scripting.
This is the code i'm currently using on my test site:
$sql = "SELECT address FROM shops WHERE shopname='name'";
if($res = mysqli_query($link, $sql)){
if(mysqli_num_rows($res) > 0){ ;
while($row = mysqli_fetch_array($res)){
echo ".....
There's no user inputs on any part of the website, if anyone can see an obvious error in my coding and has any recommendations that would be great!
Thanks in advance!