This is a discussion on "can create database but not tables" within the Databases section. This forum, and the thread "can create database but not tables are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
can create database but not tables
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
can create database but not tables
i am trying to create a database with tables via injection, but i am having problems, it will create the database, but not the tables, can you see what is wrong here , thank you
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
|
|
||||
|
Re: can create database but not tables
Quote:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
very weird, its still not working, i must be missing something somewhere, but i am getting no errors
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Sep 16th, 2007 at 10:43. |
|
|||
|
Re: can create database but not tables
instead of
'CREATE TABLE `form` ( try CREATE TABLE `form` ( |
|
||||
|
Re: can create database but not tables
Parse error: parse error in c:\program files\easyphp1-8\www\new folder (2)\input.php on line 15
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
|||
|
Re: can create database but not tables
line 15 I think is this
`blog_mes` TEXT NOT NULL ) ;' TRY `blog_mes` TEXT NOT NULL ); |
|
||||
|
Re: can create database but not tables
nope, still the same - i think line 15 is this
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: can create database but not tables
you have an excessive amount of uneeded apostrophes
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
so which do i need, and which dont i need ? , i took this the 'create table' bit straight from the database
i have tryed this
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Sep 16th, 2007 at 11:52. |
|
||||
|
Re: can create database but not tables
for one thing you need $sql to be before the query
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
no error, but still no tables
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: can create database but not tables
Quote:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
that did it, thank you very much
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: can create database but not tables
you're welcome
you know how to put data aswell?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
how to insert data you mean ?
this ? SELECT * FROM `form` WHERE 1 or INSERT INTO ?
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: can create database but not tables
Quote:
and you don't need 'form' just form
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
ok, how would i insert data to 'blog_mes' for example from a form
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Sep 16th, 2007 at 16:10. |
|
||||
|
Re: can create database but not tables
just change the query, obviously you need to define $title, $date etc.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: can create database but not tables
this is my form, if it helps - ,
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Sep 16th, 2007 at 16:28. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] create 2 tables | saltedm8 | PHP Forum | 4 | Oct 8th, 2007 12:53 |
| CREATE DATABASE name' from config.php | saltedm8 | PHP Forum | 10 | Sep 21st, 2007 18:41 |
| Displaying MySQL database tables on a page | vandiermen | PHP Forum | 3 | Jun 30th, 2007 21:58 |
| two tables in one database, different result | ntgcmlfu | Classic ASP | 5 | Apr 20th, 2006 23:59 |
| newbie simple create database to record web page input | jfb130 | Databases | 3 | Aug 28th, 2005 16:37 |