Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
| Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 13th, 2008, 09:30 PM
Registered User
 
Join Date: Feb 2004
Location: , Selangor, Malaysia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to auxiora_nemesis Send a message via AIM to auxiora_nemesis
Default Cannot create record, directory exist

Hi,

Could anyone help me to solve this prob? When im trying to create a new record (using a web-based system), it says Directory Exist. FYI, I had no problem when tried to update existant record.

Tested on XAMP, it's working fine but only getting the error when im using single installation on Apache, mysql enterprise and PHP5 (running on Windows based).

Kindly advise

regards,
suerie
  #2 (permalink)  
Old April 13th, 2008, 11:04 PM
Registered User
 
Join Date: Feb 2004
Location: , Selangor, Malaysia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to auxiora_nemesis Send a message via AIM to auxiora_nemesis
Default

It's ok guys.. i've found the solution.
I've tried to create a new record for other system and this error occured.. "Data too long for column...".
So i've searched through the internet and found the solution for this error. Seems like it solved my above prob.

Below is the solution that i've referred to:

Go to my.ini and remove the highlighted part
sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”

and restart the MYSQL server.


regards,
suerie


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT Check if directory exist ArnArn XSLT 3 November 23rd, 2008 03:44 PM
Insert where record doesn't already exist Neal SQL Server 2000 3 February 4th, 2008 10:09 AM
record exist or not keyvanjan Classic ASP Basics 2 May 5th, 2006 11:39 AM
Return a record that doesn't exist in a table? Unregistered SQL Server 2000 4 May 3rd, 2006 01:27 AM
Record source ... does not exist tunsted Access 2 April 1st, 2004 10:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.