Jump to content

razah

Members
  • Posts

    2
  • Joined

  • Last visited

razah's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. razah

    No Apostrophe

    I am having problems submitting data in a form with an apostrophe ('). Only when there is an even number of apostrophes in a text field, it can be submitted.Here is the code: $conn=odbc_connect('ITLog','','');if (!$conn){exit("Connection Failed: " . $conn);}$department = $_REQUEST['department'];$contact = $_REQUEST['contact'];$problem = $_REQUEST['problem']; $sql="insert into IT_Log (department, contact, problem) values ('$department','$contact','$problem')" ; $rs=odbc_exec($conn,$sql);if (!$rs){ exit("Error in SQL");}
  2. I am able to connect to an access database on a local hard drive but unable to connect to one on a network drive.Does anyone know what the problem is?
×
×
  • Create New...