Jump to content

php?

Members
  • Posts

    252
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

php?'s Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I believe I asked people to look at this who helped not criticize. In other words I never asked for your help, nor your comments.
  2. Could someone who actually wants to help and not criticize read this?
  3. I never said that I was going to remove anything.
  4. Doesn't list any errors in Notepad++ eiter
  5. Last time I posted a lot combined someone said I should seperate them so people don't get bored... just following suggestions. Besides it's not very appealing to read through many old comments to find out that that particular problem was solved.
  6. Are there any special text editors for like php? All I have is notepad and i'm curious.
  7. Thorpe this doesn't really have anything to do with the seperation of the tables. Yes I could do what you suggested before but it wouldn't solve this. In fact I would have to do almost the same thing. And every topic that ive posted have been solved and were different issues. I'm just adding different parts into the script.
  8. mhm Heres my set up... CREATE TABLE `pending` ( `ID` int(11) NOT NULL auto_increment, `Username` varchar(255) NOT NULL, `Password` varchar(255) NOT NULL, `Email` varchar(255) NOT NULL, `Active` int(11) NOT NULL default '0', `Level_access` int(11) NOT NULL default '2', PRIMARY KEY (`ID`), UNIQUE KEY `Username` (`Username`), UNIQUE KEY `Email` (`Email`) ) ENGINE=MyISAM;
  9. It seems like it should update... and there are no errors, so hmm
  10. Okay so according to the code below when I press accept it should update the field "Active" to 1 and then send it to a different table and delete it from the old table. Well it won't update the value of active to 1. It sends and everything, but the Active stays to 0. No errors are given. foreach($_POST['row_s'] as $key => $val){ $info = mysql_fetch_array(mysql_query("SELECT * FROM pending WHERE ID='".$key."'")); if($val == 1) { echo "{$info['Username']} is being accepted..."; [b]$update = mysql_query("UPDATE pending SET Active=1 WHERE ID='".$key."'") or die(mysql_error());[/b] mysql_query("INSERT INTO accepted SET Username='".$info['Username']."', Password='".$info['Password']."', Email='".$info['Email']."'"); // Moves user to new table echo "done <br>\n";
  11. Oh yeh hehe... thanks so much M8
  12. Wait.. one last little error. When you click accept test is being accepted...done test is being deleted...done it still moves it to the right place.. but it just displays the deleted part for some reason
  13. Oh wait no... for got to edit a part!!! IT works!!!!!! thanks northern
  14. t is being deleted...done 26 is being deleted...done Almost.. but now it displays 26 still =/
  15. Nevermind i got it... forgot a semicolon
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.