| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: May 2005 Location: Portsmouth, UK
Posts: 191
![]() | |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Nov 2005
Posts: 122
![]() | Hey there. Give this a go: Code: <?PHP
//Connect to DB
mysql_pconnect("localhost","cooper","password");
mysql_select_db("cooper_forum");
//Tell the script what to look for and where
$result = mysql_query("SELECT m.email,i.field_2 FROM ipbmembers AS m LEFT JOIN ipbmembers AS i ON i.UNIQUEID=m.UNIQUEID");
//Tell Script what infromation to collect
while($r=mysql_fetch_array($result))
{
if($r[field_2]!="n"){
$email = $r["email"];
}
//Display info
print "$email, ";
}
?>
__________________ CYTechnologies - Professional Website Development and Design GetCustomerRated.com - Get Customer Rated allows a business to capture genuine word of mouth advertising and place it in a virtual player on their website. |
| |