Closed msecursus closed 8 years ago
Do you have this code at the bottom of your form?
<?php if(isset($opened['id'])) { ?>
<input type="hidden" name="id" value="<?php echo $opened['id']; ?>">
<?php } ?>
Just noticed this: $q = "UPDATE users SET first = '$first', last = '$last', $password status = $_POST[status], WHERE id = $_GE[id]";
The last part of this query needs to say:
WHERE id = $_GET[id]
before i had get and post.. just tying ..and than i forget that missing t .it was there but didn't work.it still doesn't work. yes i have that code in my users.php
remove the comma after $_POST[status]
like this:
$q = "UPDATE users SET first = '$first', last = '$last', $password status = $_POST[status] WHERE id = $_GET[id]";
User was updated Case Closed!!!!! thanks
MARIA this is my problem and my code. CAN SOMEBODY HELP???? using newest version :juli 2015! and using:windows 8
User could not be updated because: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id =' at line 1
UPDATE users SET first = 'me2', last = 'meme', status = 1, WHERE id = <?php
switch ($page) { case 'dashboard':
}
?> seen all the issues have done this: <?php if(isset($opened['id'])) { ?> <?php } ?>ETC<?php } ?>in users.php this didn't help