So what I need to do is find in my tables where id = id and name = name. I have tried this with no success.
$sql="SELECT * FROM $mysqltable WHERE id='$id' && name='$name'"
EDIT I found that I was missing a } bracket below this and the above code does work :/ Thank you everyone.