• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Little problem with sql

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
Helloo,


I got this:
$query = mysql_query("SELECT id, owner FROM houses WHERE id = 2");
$id1 = $get1['id'];
i have added
$owner1 = mysql_query("SELECT name FROM players WHERE id = '$id1'");

and i have "Resource id #15"

Its showing house owner id "2" and i wanna to show the name of this owner id :P
help ;p

thanks
 
Last edited:
$result = mysql_query('SELECT `players`.`name`, `houses`.`id`, `houses`.`owner` FROM `players`, `houses` WHERE `houses`.`id` = 1;');
while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {



echo'<tr><td align="left" width="10%"><b>Thais</b></td><td align="center"></td></table></tr>';}


mysql_free_result($result);

I have just write now 6x thais :/ idk why 6x, it should be one, anyone know?
 
Back
Top