whats wrong with this code?
Posted by:
jhunt
Date: July 19, 2005 07:55AM
<?php
require 'DB.php';
$db = DB::connect('mysql://root:mypass@localhost/logerror');
if (DB::isError($db)) { die("connection error: " . $db->getMessage( )); }
$q = $db->query("INSERT INTO error (company, location, employee, error)
VALUES ('x', 'y','z','a')");
?>
anyone tell me why this wont insert the values to my database?
Subject
Written By
Posted
whats wrong with this code?
July 19, 2005 07:55AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.