You are here: Re: [PHP] help me in creating tables on the fly « PHP « IT news, forums, messages
Re: [PHP] help me in creating tables on the fly

Posted by Jochem Maas on 10/12/05 11:37

Suresh Pandian wrote:
> hello friends,
>
> im currently working on creating musical forum.....
> i need to create tables for every song uploaded on the fly to save the comments and rates entered by the viewers.
> im unable to create tables on the fly.........

................................

if I upload 1000 songs to your server then that will ammount to a 1000 tables. and a 1000
songs is nothing.... the whole idea of creating a table for every song is wrong and will get you
into trouble (100,000 songs will crash your system), you only need one table to store
all the comments for each song - and possible one extra table to store the rates for all songs.

> can anyone know how to create tables on the fly .........plz tell me .........

all you need to do is generate an sql query with the CREATE TABLE syntax. and then run it
the same way you would run a normal query - thsi assumes that youre database actually allows
the relevant user to create tables.

> Also, can u tell me the way to how to play the song using php......
> i uploaded the songs to mysql database...
> if u know the same kind of work anywhere in the net as tutorials and help .........plza tell me the URL........

Google for 'Database design' 'Data Normalization' and stuff like that - you seem to be in need
of knowledge regarding how to create a half decent database (one that wont bite you in the ass)

>
> Thanks to all..................
>
> Suresh.P
>
>
> ---------------------------------
> Yahoo! India Matrimony: Find your partner now.

 

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

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