<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
<<<<Restricted Area>>>>" .
"
Problem with your username. Please Log In again.
Assign Special Pricing Contact | Help |
$dtup = date(Ymd);
$act_year = date(Y);
$act_month = date(m);
$act_day = date(d);
$act_respond = 'positive';
$web = 'Web';
$ID = $_POST['ID'];
$first_Name = $_POST['first_Name'];
$Name = $_POST['Name'];
$Namely = $first_Name." ".$Name;
$Company = $_POST['Company'];
$biztype = $_POST['biztype'];
$Address = $_POST['Address'];
$City = $_POST['City'];
$State = $_POST['State'];
$ZipCode = $_POST['ZipCode'];
$Country = $_POST['Country'];
$Phone = $_POST['Phone'];
$email = $_POST['email'];
$specialstat = $_POST['specialstat'];
$repusrn = $_POST['repusrn'];
$status = $_POST['status'];
$memo = $_POST['memo'];
$mem = htmlspecialchars($memo, ENT_QUOTES, "UTF-8");
$not = $_POST['note'];
$note = "Assigned from Special Pricing. Status: ".$specialstat." - ".$mem." ".$not;
$dtnum = $_POST['dtnum'];
$chunk_dtnum = chunk_split($dtnum, 2, ':');
$chunk_arr = explode(":", $chunk_dtnum);
$datus = $chunk_arr[2].'-'.$chunk_arr[3].'-'.$chunk_arr[0].$chunk_arr[1];
$due = $dtnum;
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
$ok = @mysql_query("SELECT ID,first_name,last_name,email FROM psw WHERE usrn='$repusrn'");
if (!$ok){
echo ' Could not retrieve Representative Data Could not enter Contact in Representative Contacts Successful Assignment to $repusrn "); $ok2 = @mysql_query("INSERT INTO con_activity SET CID='$CID',act_year='$act_year',act_month='$act_month',act_day='$act_day',contact_type='$web',act_respond='$act_respond',dtnum='$dtup'"); if($ok2){ echo("Successful Addition to Activity Report "); }else{ echo("Error Adding to Activity Report! Contact Flagged for Action "); }else{ echo("Error Flagging Contact for Action! Successful Addition to this Contact Notes Error Adding Contact Notes! Email sent to Representative Error Emailing Representative! "); } }//ifinsertedintoconmain ?> |
©2007 - Data Base Interface - Custom Built at:
![]() |