SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Not updating

  1. #1
    Non-Member
    Join Date
    Mar 2005
    Posts
    832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not updating

    Does anyone know why this code isnt updating?

    <?
    include "theme.php";
    include "../db_connect.php";
    $room = $_GET["name"];
    $permissions = $_GET["permissions"];
    $password = $_GET["password"];

    $query = "UPDATE `flashchat_rooms` SET `permissions` = '$permissions', `password` = '$password' WHERE name='$room' ";

    ?>
    Chatroom successfully updated.

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    153 Post(s)
    Tagged
    3 Thread(s)
    You are not running the query.
    PHP Code:
    $query mysql_query("UPDATE `flashchat_rooms` SET `permissions` = '$permissions', `password` = '$password' WHERE name='$room' ") or die(mysql_error()); 
    Spike


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •