RE: [PHP-DB] What's wrong with this query?

2004-02-26 Thread Paul Fitz
You haven't done that a thousand times - the syntax is wrong :). You are using a combo of INSERT and UPDATE syntax there. Try INSERT INTO log (term, returns, time, date, ip) VALUES ('$search', '$arrayword',CURTIME(), CURDATE(), '$ip'); Cheers, Paul -Original Message- From: Axel IS

RE: [PHP-DB] Results with ledger stripes?

2004-01-26 Thread Paul Fitz
Hi, You can use the modulus operator to create alternate colour rows. A bit simpler in code ;) See below - echo "DomainAverage Speed\n"; // Define count variable which is tested in loop $count = 1; while ($mongorow = mysql_fetch_array($mongo, MYS

[PHP-DB] Using PHP to print using LP on Linux

2003-10-24 Thread Paul Fitz
Hi Guys, I suppose this isn't a database specific question, but it is the only PHP mailing list I am subscribed to. Trying to trigger a printer in the office hooked up to a Mandrake 8 box with PHP 4.3 to print a file remotely, using the 'lp' command. Uses a postscript template to create the t