|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45664 Problem with PHP executing mysql queries
Submitted: 2008-07-31 11:18 UTC Modified: 2008-07-31 22:46 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: umakantpatil4 at gmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.6 OS: Windowx XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: umakantpatil4 at gmail dot com
New email:
PHP Version: OS:


 [2008-07-31 11:18 UTC] umakantpatil4 at gmail dot com
I have made PHP script which read excel file and its to
MySQL database.
Well script works properly everywhere.. but when are records less
if the records goes above 400 or 500 then file executes half only..
above 400 or 500 no record is added..
I just want solutions for this code. that it should not stop executing

Reproduce code:
require_once 'Excel/reader.php';


$reader = new Spreadsheet_Excel_Reader();


print "Please wait process started..<br><br>";

for ($i = 2; $i <= $reader->sheets[0]["numRows"]; $i++)

mysql_query("insert into bea_role(zone,branch,solid,name,empid,functional_role,target_policy,target_wpc_in_lacs,issued_achvt_policies,issued_achvt_wpc_in_lacs,achvt_policies,achvt_wpc)
values('$r1','$r2','$r3','$r4','$r5','$r6','$r7','$r8','$r9','$r10','$r11','$r12')") or die(mysql_error());

print "Process Completed..";

Expected result:
Expected Result is expected that it should print both lines..

Please wait process started..

Process Completed..

and also it should process whole file

Actual result:
But the actual result is

Please wait process started..

the ending statement doesnt come. Hlaf of the file remains unprocessed.
Please provide solutions.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-31 22:46 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jun 09 11:03:41 2023 UTC