I am trying to make my php code to read off of two tables in my database. Like if it does not exist in one table it will check the other and see.
$mystyle = mysql_query("SELECT * FROM images WHERE `name` = '$name'");
How would I make it read from the table images and the table images_2
I tried doing this: [but didn't work of course]
$mystyle = mysql_query("SELECT * FROM images, images_2 WHERE `name` = '$name'");