Jump to content
xt:Commerce Community Forum

Frage Zur Affiliate.php


mkmarketing

Recommended Posts

Hallo und immer wieder ich,

kann ich folgende Abfrage in affiliate.php als box_content einbauen, wenn ja, wie?

'$mysqlusername' = 'pro....de';

'$mysqlkennwort' = 'p...';

'$dbname' = 'D...';

'$dbhost' = '000.00.000.00';

mysql_connect($dbhost,$mysqlusername,$mysqlkennwort);

mysql_select_db($dbname);

$sql = SELECT 'affiliate_lastname'

FROM affiliate_affiliate

WHERE affiliate_id = $ref;

$result = mysql_query($sql);

if (!$result) {

echo 'Anfrage ($sql) konnte nicht ausgef?hrt werden : ' . mysql_error();

exit;

}

if (mysql_num_rows($result) == 0) {

echo 'Keine';

exit;

}

while ($row = mysql_fetch_assoc($result)) {

echo $row[affiliate_lastname];

Vielen Dank

michael

Link to comment
Share on other sites

Archived

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

×
  • Create New...