Jump to content

[SOLVED] Email Trigger Help Needed


GsXtAsY

Recommended Posts

So what i have here is a .inc file an email trigger...in the email trigger I need this script checking the database to see if the account is a shared account in the database, if it is a shared account...I am receiving a syntax error...can someone please look at the code below to see what I am missing or doing wrong?

require_once('includes/db_login.inc');

 

$qry_shared_email = 'SELECT teaming_shared_account FROM account WHERE nickname = '.$order_details['account_name'];

 

$result = mysql_query($qry_shared_email) or die('Invalid query: ' . mysql_error());

 

while($row = mysql_fetch_array($result))

{

if ($row['teaming_shared_account'] == 1) 

    $message .= "This is a shared account."; 

}

}

Link to comment
https://forums.phpfreaks.com/topic/110772-solved-email-trigger-help-needed/
Share on other sites

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.