Jump to content

[SOLVED] variables from database


guymclaren

Recommended Posts

You're missing the fetch function:

 

$affdetails =" SELECT id, ref2, ref3, ref4 FROM affiliates WHERE aff_id = '$aff'";
mysql_query($affdetails) or die(mysql_error()); 
$result = mysql_fetch_assoc($affdetails);
$aff1 = $result['ref2'];
echo $aff1;

Archived

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

×
×
  • Create New...

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.