RE: [PHP-DB] Apache 2.X and PHP

2002-09-08 Thread Beau Lebens
i'm running php 4.2.2 and apache2 on my win2k laptop and it appears to be running fine (stable etc) but obviously only as a dev platform, so not under any sort of load or anything like that. also not running particularly complex operations, so don't know about how it will handle that :) but it wo

RE: [PHP-DB] Problem with SQL

2002-09-08 Thread Peter Lovatt
hi It is trying to insert the value '127' into a key field (or indexed field) when it already has a record with '127' in that field. You may know it as a key violation It means you are trying to insert a record with a duplicate primary key HTH Peter ---

[PHP-DB] Problem with SQL

2002-09-08 Thread Brtosz Matosiuk
Hi all SQL gives me a strange error and I can't find any info about it. Mayby someone of you could give me a clue what is wrong. The error is : 'Duplicate entry '127' for key 1' Thanks for any help -- -= MAdSiuK ([EMAIL PROTECTED]) =- "(...) jestesmy nihilistami, w nic nie wierzymy, doslo

RE: [PHP-DB] SQL newbie

2002-09-08 Thread Boaz Yahav
You can always do something like : $MyPossiblyProblematicString = addslashes($MyPossiblyProblematicString); Before you put it in the query or use magic_quotes_gpc : Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote),