I have two tables with this structure:
Table one:
ID Description
Table two:
ID Name
I have to echo only the id’s of both tables but i don’t know how to compare.
i can show my idea using a stupid example:
if($id is in the first table AND $id is in the second table){
echo $id;
echo $description;
echo $name
}
How to do this?
Thanks!
1 Answer