Man I am dyin here I just got PHP and ACCESS to talk (I know about access running mysql at home but they no likey here at work)
now I am getting this parse error and I can't find it... will someone give me a hand!
<?php
function Error_Handler( $msg, $cnx ) {
echo "$msg \n";
odbc_close( $cnx);
exit();
}
echo "this is $cname";
$cnx = odbc_connect( 'sales' , 'Roloc', 'bo1634' );
if (!$cnx) {
Error_handler( "Error in odbc_connect" , $cnx );
}
$SQL_Exec_String = "Insert Into data (salesrep,team,cname,ctname,addr,city,state,zip,country,bp1,bp2,bp3,bf1,bf2,bf3,email,url,comments) Values
('$salesrep','$team','$cname','$ctname','$addr','$city','$state','$zip','$country','$BP1','$BP2','$BP3','$BF1','$BF2','$BF3','$email','$url','$comments');
$cur= odbc_exec( $cnx, $SQL_Exec_String );
if (!$cur) {
Error_handler( "Error in odbc_exec( no cursor returned ) " , $cnx );
}
odbc_close($cnx);
?>