Reply to Re: insert to DB

Your name:

Reply:


Posted by David Hall on 12/18/05 18:13

> <?
> if ($_POST["$submit"])
> {
> $Name = $_POST["Name"];
> $Rating = $_POST["Rating"];
>
> $sql = "UPDATE leaderboard SET Name='$Name', Rating='$Rating' WHERE
> ID=$id";
> //replace news with your table name above
> $result = mysql_query($sql);
> echo "Thank you! Information updated.";
> }
> }
> ?>

You don't set id in this case. Of course, from some of your other
code, it looks like you're relying on register_globals to be on, so
maybe it is and that's not why.

David Hall

[Back to original 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

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