|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-20 09:18 UTC] jelle at v-essen dot nl
Description: ------------ I've seen more people have emalloc() errors, but their situations seem other than my situation. Whenever I try to delete the last row from a table, it fails. I haven't found a solution in other bug reports. Oh, yeah: the first time I tried the script, I got a php-cgi.exe error message. When I refreshed the page, I got the emalloc error. Reproduce code: --------------- <?php $adminApplyUpdateID = $_POST['applyID']; $sqlDeleteApply = "DELETE FROM tblApply WHERE id = $adminApplyUpdateID"; odbc_exec($conn,$sqlDeleteApply); ?> Expected result: ---------------- The row where the field id contains variable $adminApplyUpdateID is deleted. Actual result: -------------- When only one row is left in the table, and I try to delete it, it fails, and the following message appears. FATAL: emalloc(): Unable to allocate 1953394532 bytes PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
This happens whenever I try to delete the last row in a table, not only in this script, but in any of them. Oh, I forgot to post a part of the code, which might be very useful: <?php $connectDriver = 'DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=data.mdb;'; $conn = odbc_connect($connectDriver,'',''); ?> Maybe it's the driver...