Jump to content
php.lv forumi

query


PHsG

Recommended Posts

Sveiki, tātad man ir problēma ar datu izvilkšanu ar vienu vaicājumu.

Es vēlējos izvilkt datus no divām tabulām ar vienu vaicājumu, bet diemžēl man tas nesanāk...

$res = mysql_query("SELECT tourneys.*, teams.id AS team_id,teams.name AS team_name FROM tourneys WHERE teams.userid = '$uid' and tourneys.id = '$id'");
$row = mysql_fetch_row($res);

Edited by PHsG
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...