Bug #18070: INSERT failure
| From: | Akujin11 at yahoo dot com | Date: | Sun, 30 Jun 2002 08:46:20 +0000 |
| Subject: | Bug #18070: INSERT failure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12577@lists.php.net to get a copy of this message | ||
From: Akujin11@yahoo.com
Operating system: Windows XP
PHP version: 4.2.0
PHP Bug Type: MySQL related
Bug description: INSERT failure
I'll start with the code that is the source of the problem:
function submit_values($char_name, $str, $spe, $skill, $def, $pow) {
$submittal = "INSERT INTO stats (name, strength, speed, skill, defense,
power)
VALUES ('$char_name', $str, $spe, $skill, $def, $pow);";
$submittal_q = mysql_query($submittal) or
die(mysql_error());
echo "Added $char_name, $str, $spe, $skill, $def, $pow";
}
now that the code is stated, i'll give the problem, and it is a simple
one: this code does nothing. it is the same exact code i was using
successfully before upgrading to 4.2.0, however now it does absolutly
nothing. the code processes, acts as if nothing is wrong, however when
executed absolutly no information is being added to my database.
i request that you NOT simply say "consult the users manual" like you have
to so many other people, because it solves nothing. i would like a REAL
solution to this problem.
-The Akujin.
--
Edit bug report at http://bugs.php.net/?id=18070&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18070&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18070&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18070&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18070&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18070&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18070&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18070&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18070&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18070&r=globals