Jump to content

Archived

This topic is now archived and is closed to further replies.

almightyegg

selecting one row

Recommended Posts

i am trying to select a members group, but the name of it isnt stored in member database, the group id is.
so i wanted to try selecting the name from the group database, using the member group id...i hope that made sense :P
[code=php:0]
$society = mysql_query("SELECT * FROM cluth WHERE id LIKE '%$mem[clutch]%'");
$soc2 = mysql_fetch_array($soc2);
?>
Clutch: <? echo "$soc2[name] $mem[clutch]"; ?><br>
[/code]

anyideas???

Share this post


Link to post
Share on other sites
I'm not sure I understand... first, you're getting back multiple rows, assuming your query executes correctly.  What's the problem?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.