Alex (inpotentia) wrote in lj_clients,
Alex
inpotentia
lj_clients

Databases in PHP

Thanks to all your help I now have my SMS2lj client written and working as well as I can tell without actually having access to test it with a SMS yet.

I've hit a snag though on writing the page where people can enter their details into a ddatabase. I can not get the script to update the database. It's not throwing up any errors.


The code I am using in PHP is:
$conn = new COM("ADODB.Connection") or die("Cannot start ADO");
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("user.mdb"));
$conn->Execute ("INSERT INTO user VALUES ('${mobile}', '${user}', '${pass}',' ${GMT}')");
$conn->Close;
Can anyone see anything obviously wrong with this?
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments