This is a discussion on "PHP SQL create table with variable name" within the PHP Forum section. This forum, and the thread "PHP SQL create table with variable name are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP SQL create table with variable name
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
PHP SQL create table with variable name
Hi,
I have two questions, firstly can I create a table with the name of a variable using php?? This is what I'm trying:
/EDIT------------------ Also, are there any security issues in the following scenario: A company produces quote and saves to database. Sends an email to client with a link and query string containing quote number to client. Client clicks link and webpage retrieves quote from database. Client checks "accept quote" and submits. Thanks, Nathan. Last edited by karinne; Jun 12th, 2007 at 12:26. Reason: Please use [php]...[/php] tags when displaying PHP code! |
|
|
|
|||
|
Re: PHP SQL create table with variable name
This should work... You have to use real escape string to make the data safe before using it with a database.
The mysql_error() part will give you a detailed error if something goes wrong. (Remove the mysql_error() part from a live website.);
|
![]() |
| Tags |
| table, sql, php, create |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| variable classes | CloudedVision | PHP Forum | 4 | Feb 14th, 2008 03:07 |
| is this variable right? | geyids | PHP Forum | 4 | Aug 6th, 2007 21:45 |
| Am I using table-cell and table-row too much? | idl | Web Page Design | 15 | Sep 7th, 2006 12:55 |
| Need to align width of Float table with the table below | Vertabase | Web Page Design | 4 | Mar 8th, 2006 21:21 |
| ..copy data from column A in Table A to column B in Table B? | gecastill | Databases | 10 | Jun 23rd, 2005 18:27 |