You are here: Re: MYSQL - PHP « PHP Programming Language « IT news, forums, messages
Re: MYSQL - PHP

Posted by Colin McKinnon on 10/08/05 11:16

Angelos wrote:

> First of all sorry if this is not the correct newsgroup for this question,
> but I am using PHP with MYSQL and someone here could have an answer and
> the experience.
>

This is the wrong newsgroup.

> REPLACE INTO content SELECT bak_content_id, bak_content_title FROM
> content_bak WHERE backup_id = '".$_GET['buckup_id']."'";
>
<snip>
> What I want to do is to REPLACE the TABLE CONTENT content_id = $x with
> the TABLE CONTENT backup_id = $y AND bak_content_id =$x
>

REPLACE INTO content (id, title)
SELECT bak_content_id, bak_content_title
FROM content_bak
WHERE backup_id={$_GET['backup_id']}

You might find a good book on SQL & MySQL in particular of benefit.

C.

 

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

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