You are here: Re: Creating tables on-the-run « PHP SQL « IT news, forums, messages
Re: Creating tables on-the-run

Posted by Stefan Rybacki on 09/28/12 11:24

max wrote:
> On Tue, 16 Aug 2005 19:36:19 +0200, Stefan Rybacki <stefan.rybacki@gmx.net>
> wrote:
>
> >max wrote:
> >> ...
> >> You seem unable to appreciate that I tried that and it didn't work. See my
> >> post in answer to Hilarion's helpful and problem-solving reply.
> >
> >No not at all. I just showed you that is of course possible to do what you tried.
> What's the matter with you? - for the umpteenth time, it is NOT possible.
> All you showed me was that you didn't have a real clue.

Where did I show you that?

> And I
> >gave you a hint why your try failed, nothing more.
> That is exactly what you did - gave hints. I came here for the answer to a
> question, not to join your correspondence course. Hilarion solved it in one.

I'm sorry but you lost me. What do you think is this?:

$TableName=rand(12345, 99999);

$Query = "CREATE TABLE `$TableName`
(
id SMALLINT(3) NOT NULL,
firstname VARCHAR(255) NOT NULL
)";

mysql_connect("localhost",$username,$pass) or die(mysql_error());

mysql_select_db($DBName) or die(mysql_error());

mysql_query($Query) or die(mysql_error());


Isn't this a solution that is able to create tables names only consists of digits?

Regards
Stefan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация