![]() |
Ok, I'm trying to created a list of users who have data entered in their "field8" in the "userfield" table.
I did this: [QUOTE] require("/home/newbeetle/public_html/vbulliten/admin/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassw ord); mysql_select_db($dbname); $query = "SELECT * FROM userfield WHERE field8 = ''"; $resultlatest = mysql_query($query,$db); while ($latest_array = mysql_fetch_array($resultlatest)) { echo "<A HREF=\"http://forums.newbeetle.org/member.php?action=getinfo&userid=$latest_array[userid]\">$latest_array[username]</A> } |
Change your query to this:
SELECT * FROM userfield LEFT JOIN user ON user.userid=userfield.userid WHERE userfield.field8=''; :) |
Thanks so much. That worked beautifully. :D
|
All times are GMT. The time now is 03:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|