creating tables with scripts

Problems with the Windows version of XAMPP, questions, comments, and anything related.

creating tables with scripts

Postby riggers » 22. September 2012 16:21

HI there,
again this is probably a very basic simple problem.
i wrote a script, following the instructions from a tutorial ,to create an admin table in a database that i had created and the srcipt worked,i got my if message back database created.
i then followed the same proceedure to create another table and i got the else message back "table not created" i have tried several times.
i know i can build tables from the admin panel but need to know what i am doing wrong with the scripting can you help please?
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
XAMPP Version: 1.8.1
Operating System: windows

Re: creating tables with scripts

Postby Altrea » 22. September 2012 17:45

Hi riggers,

Because you don't show is your sourcecode, we can just guess:
Are you using a database user with missing CREATE priviledges?

Do you take care of error output for database errors in your sourcecode?

best wishes,
Altrea
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4639
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.1
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 9 guests