You are here: Re: transfering data from one table to other « PHP SQL « IT news, forums, messages
Re: transfering data from one table to other

Posted by J.O. Aho on 12/10/06 15:13

ulyx wrote:
> If i have table users ( with 10 fields) and if i want to ( users are listed,
> and you can choose them thru button click ) move one of those users to
> second table ( called VIP ). what should i do ?
>
> When i move this user from one to other table then this user will be just in
> one table ( VIP ). There is no double entries.

Why not just add another column to mark if the user is VIP or not?

You can SELECT the userdata from the user table, and then INSERT the data into
vip table if this goes okey, then just use a DELETE to remove the user from
the user table.


PS. Added the alt.php.sql newsgroup, as it's a more proper place for this kind
of questions IMHO.


//Aho

 

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

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