> echo("You must review the site"); } else {
> if (!isset($anegative)) {
> echo("You must review the site"); } else {
> connectdb();
> mysql_select_db(xtopsites);
                  ^        ^ quotes
> $sql = "insert into sitesats set areview='$areview', apositive='$apositive', 
>anegative='$anegative', arate='$arate' where id='$id'";
> $query = mysql_query($sql);
> $sql = "update sitesats set validated='2' where id='$id'";
> $query = mysql_query($sql);
>
> echo("Review stored successfully.");
>
> } } }
> ?>
> </body>
> </html>
>
> It gives me the success message but the db remains untouched. What have I done this 
>time? :)
>
> Thanks in advance.
>
        Bonjour,
mysql_select_db(string db_name);
So try : mysql_select_db("xtopsites");

jean-michel


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to