seven
Mar 2 2005, 01:05 AM
I have a script that during the install, I am to run a file that is supposed to load zip code data into the database. It says it runs correctly at the end but yet the table in the database remains empty.
Here is the code:
PHP Code:
CODE <?
require('data.php');
require('functions.php');
sql_connect();
$file=file("admin/zip.txt");
$i=form_get("i");
$start=$i+1;
$end=$start+5000;
if($end>=count($file)){
$end=count($file);
}
for($i=$start;$i<$end;$i++){
$sql_query=$file[$i];
sql_execute($sql_query,'');
if($i%5000==0){
$link=$main_url."/load_zip_data.php?i=$i";
show_screen($link);
}
}//for
echo "DONE $start-$end";
?>
Can anyone see anything wrong with this code to where it won't do what it should? The zip.txt is located in the admin directory as it should be. Thanks for any help! The file load_zip_data.php is the one that is the one that contains all script above.
:?: :?:
Added [code] tags--CodeFX
Reply
Similar Topics
Keywords : loading values txt file database- Secure File Transfer For Mainframe Systems
- (2)
- Will There Be A free Image, File, Video And Flash Host?
- (5)
Do you think there will ever be a free Image, File, Video, and flash host all on one site? I doubt
there is, and wouldn't it be great if you could register and have your own account, kinda like a
photobucket layout, but with more file extensions and file hosting, if there is link me right
away! It would be so awesome if they had unlimited image size and 5 minute video length. well
what are your thoughts on this?...
Which File Extension Are You?
- (48)
Ever wonder which file extension you are? /smile.gif' border='0' style='vertical-align:middle'
alt='smile.gif' /> Take the following test. http://bbspot.com/News/2004/10/extension_quiz.php as
for me: i'm a PDF! /biggrin.gif' border='0' style='vertical-align:middle'
alt='biggrin.gif' /> true, true. i have a certain attachment to PDFs. i collect PDF ebooks, and
even my default printer is set to print in PDF! /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> any web page i want, i just press Ctrl-P, and
voila -- a PDF co...
Need File Host
- (7)
i require a host to host files that has a good upload speed (unlike megaupload, sendspace) it
can't be filefront cuz i got banned for it not being game stuff. max file limit anythign over
100mb ...
2 Gb Free For File Storage Or Web Hosting
- don't wait to see the link (12)
here it is: CODE http://www.omnilect.com Omnilect is your own web storage, built on
the idea that you should be able to keep all the data you share in one place and access it anywhere.
The key features are: 2,000 Megabytes - Just For You. You need plenty of space - but it should be
space you can actually use. Omnilect gives you 2,000 megabytes of storage and lets you use your
space however you want - for email, photos, blogs, or whatever. We provide the services and the
space, you provide the data. Best Email, Calendar, & Addressbook. Omnilect has the b...
Reason For Trap17's Slow Loading?
- Anyone else have this? (17)
I'm not sure if this has been previously discussed or not, I did search for it and was unable to
find any previous posts on it. My question is...why does this Trap17 forum take so dang long to
load?!! I use Avant Browser which runs off of Internet Explorer and it seems that all my
other websites load at efficient rates for having a cable connection, however, once I get here and
try to navigate through the forum, it becomes a burden. It takes so very long for some pages to
load and it's quite a nuisance. I can honestly walk away for a couple minutes so...
Sig file problems
- (8)
I have a signatue image
I tried insert it using HTML -- BBCode EVERYTHING!!
but it just
displays my scripting--
What am i doing wrong?
Pleas PM me
--
Mike...
File Urls?
- (5)
I upload files to the public folder under a new folder now if I want to link these files to
hyperlinks on my site I need each files url. How do I go about finding this? Would these files if
zipped up become "downloadable" to my users?...
Need: Public_html file...
- (2)
I deleted it cuzz I thought I didn't need it :S Please someone send me it!!!...
i need a database backup and restore script please
- (0)
hi
i need a database backup and restore script please
if any one can help me please i tested
alot of scripts but no one worked good
so if anyone have a good tested script i will be thankful
for him :wink:...
My database lost
- (2)
my username:mechportal
url:mechportal.vaio-hosting.com
I set up my site but a few days later my
database has lost.And I can not create a new database.There is an error message :
DBI
connect('mysql:localhost','root',...) failed: Too many connections at
/usr/local/cpanel/Cpanel/Mysql.pm line 43 ERROR 1040: Too many connections...
big problem from database:(
- (1)
I have from my DB problem: some odd hazard all my db (2) they disappeared, it looks on this that
they became removed ale not by me and I at all can not no put now. To explain me someone this
question maybe it directs to admins. And some chance is maybe in order to to regain it ? /sad.gif'
border='0' style='vertical-align:middle' alt='sad.gif' />
my webside it bastion.vaio-hosting.com
and look http://www.bastion.vaio-hosting.com/html/ ...
Database size limit ?
- (3)
Hello...
I was youst wondering if there is a size limit for the databases we create ???
Thanks
in advance...
What files are you supposed to have under file manager?
- (3)
Can someone tell me the files that are supposed to be under file manager...thanks!...
File size limit?
- (16)
Is there a file size limit on the upload? Cause I'm trying to upload a file size of 1.97mb and
everything it uploads at about 300kb it says QUOTE 421 Timeout (no new data for 900 seconds)
Connection lost: vaio-hosting.com
Transfer Failed! Anyhelp here?...
Creating a settings file for your site (PHP)
- (0)
Being a designer, sometimes it's easy to overlook the little things that you'll hate yourself for
later on. For example, what if you change your domain name? Do you really want to change all 3254
links on your site?
Isn't there an easier way?
Yes
With a global settings file, you can
avoid this altogether.
Here's a template for creating such a file.
CODE <?php
/********************************************************** * Functions, Variables, Ect for
Revamp * * Author: VampyreVein ...
html imput file
- (0)
I would like to know if is possible to cange the file of the "html imput file" with source code
Thanks...
Javascript loading iframes
- (1)
Im getting this message
CODE Line: 14 Char: 3 Error:
'document.getElementByID(...)' is null or not an object Code: 0 URL:
http://www.stoneddevilinc.com?i=full_site_part_1.html
when i try to run this code
CODE <script type='text/javascript'> function setIframe() { var url =
window.location.href; var i = url.indexOf("?i="); if( i>-1 ) {
url = url.substr(i+3); document.getElementById("content").src = url;
} } ...
Phpnuke Themes Database
- (2)
I'm looking for a phpnuke themes database... Post here the best site you know! 8)...
Concerts, Is there like a database of all upcoming concerts
- (3)
Is there a website where i can see all upcoming concerts and stuff to see if they are in my area and
when they are, things like that....
How to restore backup database & site after domain chang
- (1)
I would like to know what are the right procedure to upload/restore backup files and databases when
domain name changes from sub-domain.anysite.com to mysite.com ? I do not want url redirection in
this case.. suggest me please.... thanks.
note : I don't mind uploading files from ftp client....
Can anyone tell me what the Database name is?
- (1)
I am installing a modded version of phpbb and I assume the Database username and Database password
is my FTP login.. but what do I put for Database name?
-edit- sorry for the truoble /sleep.gif'
border='0' style='vertical-align:middle' alt='sleep.gif' /> '' I figured out I had to create the
database in the cpanel... I'll jst leave this here in case someone else has this problem and
couldn't find it like me :shock:...
how to upload a file?
- (4)
How to use file manager in cpanel to upload a file from another web source. As my college does not
allow ftp acess. I tried once with a zip file it shows the size as one kb. is ther any other
option......
Cpanel-->File Manager
- (6)
I don't get that the File Manager works. I am not able to go up any file, I believe that has
relationship with the problem of Cpanel
I hope you can solve the problem. Thank you for all
their help
Thank you...
file format question
- (12)
Can I put some zip or rar file on the free hosting account?
because I want to share some file with
my friend...
What is file()?
- (3)
how to use file()...
How To Execute sql file to create table
- (16)
Hi..
Please help me :roll:
How to execute sql file ( e.g nuke.sql ) to create table in mysql
data base
I don't have cpanel/PHPmyAdmin.
Whats the comand to execute sql file at my server
:?:
my server suport mysql database
Thanks
/smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> ...
Web Admin (file manager)
- (7)
i wanna share this web admin (file manager) written in php that i have downloaded in the script
sites.. try it and enjoy!!
COPY THE CODE AND SAVE IT AS *filename*.php THEN UPLOAD IT TO YOUR
WEBSERVER RUNNING A PHP.
/*
* webadmin.php - a simple Web-based file manager
* Copyright
(C) 2004 Daniel Wacker
*
* This program is free software; you can redistribute it
and/or modify
* it under the terms of the GNU General Public License as published by
* the Free
Software Foundation; either version 2 of the License, or
* (at your option) a...
Importing mySQL database into Nuke
- (1)
Hi there.
Is therea way to import an already made database of my forum?
I need to host my
forum, as I was hosting it from my pc, bu I wouldn't like to loose any entry in the database.
Thanks...
php tutorial - basics...up to mysql/file commands
- (6)
the best way to start php is probably not adjusting a script IMO - that misses out a stage. - the
very first stage /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> -
here...
Why use php? because it allows things to be generated very quickly - without lots of html
pages. It enables users you choose to allow, to input their own content to the pages you want them
to.
1) save these files as anyfilename.php - pick your names, upload them to a php enabled server
and go to the url they are at...
2) understand , .php, //////, /* */, and ;...
Looking for loading, values, txt, file, database
|
|
Searching Video's for loading, values, txt, file, database
|
advertisement
|
|