0

How show up the calculation from other table?

i have a database and 2 tables this is my code <?php $query=mysql_query("select *from cat where k1 like '$k1' and k2 like '$k2'"); while ($row=mysql_fetch_array($query)) $k1 = $row['k1']; $k2 = $row['k2']; ?> $k1 have a content and the calculation content $k1 in different table how can i show up the calculation from other table?

20th May 2019, 11:16 PM
Sofi Nur Rochmawati
Sofi Nur Rochmawati - avatar
2 Réponses
29th May 2019, 4:01 PM
turivishal
turivishal - avatar
+ 1
You can use joins, refer mysql course's joins chapter.
29th May 2019, 3:58 PM
turivishal
turivishal - avatar