|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-11 19:50 UTC] helly@php.net
[2004-10-12 08:29 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 03:00:01 2025 UTC |
Description: ------------ When I configure PHP4, I get this notice. This is not happening in upper versions. Reproduce code: --------------- if($action == "assigngroup") { if(!is_blank($group_id)) { $sql = "DELETE FROM users2groups WHERE user_id = '" . $user_id . "';"; mysql_query($sql); if($group_id != 0) { $sql = "INSERT INTO users2groups (user_id, group_id) VALUES ('" . $user_id . "', '" . $group_id . "');"; mysql_query($sql); } } header("Location: users.php?action=view&user_id=" . $user_id); exit; } Expected result: ---------------- Notice: Undefined variable: action in c:\program files\easyphp1-7\www\admin\users.php on line 220