PHP: mysql_query - Manual - PHP: Hypertext Preprocessor
this could be a nice way to print values from 2 tables with a foreign key. i have not yet tested correctly but it should work fine. $buscar = mysql_query("SELECT k.*, e.Clasificacion FROM cat_plan_k k, cat_equipo e WHERE Tipo='$tipo' AND k.ID_Eq=a.ID_Eq")...