Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7824567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:38:32+00:00 2026-06-02T08:38:32+00:00

to save my web crawler position that how many pages it crawled i try

  • 0

to save my web crawler position that how many pages it crawled i try to save them it in database so that next time it start from the position where it was stoped

first i have table checkpoint with 2 columns id and check

my first step is to get old position from database and store it in $i

$result = mysql_query( "SELECT * FROM checkpoint" ) or die("SELECT Error: ".mysql_error());
while($ch_me = mysql_fetch_assoc($result))
{
    $i=$ch_me["check"];
            echo "<br>i value in loop ".$i;
            break;  // need just first check value in db
}

next i have to increment $i value and have to update it into database

while(1)
{   // doing work 
    $i++;
    // save i value in database
    mysql_query("UPDATE `checkpoint` SET `id`=1,`check`=$i WHERE 1");

}

now problem i a facing is with update query … it cant update $i value to databse ????? strage it was working for first time then when i run next time , not working

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:38:34+00:00Added an answer on June 2, 2026 at 8:38 am

    where in update missing

    $result = mysql_query( "SELECT * FROM checkpoint limit 1" ) or die("SELECT Error: ".mysql_error());
    $ch_me = mysql_fetch_array($result);
    $i=$ch_me['check'];
    $id = $ch_me['id'];
    $i+=1;
    
    mysql_query("UPDATE checkpoint SET check=$i WHERE id=$id");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I download images from web and save them to the SDcard in my
When I execute my web app and try to save data into databse, this
I'm developing web app that user can save his/her work to server. The data
I want to save Image in Database with JSON web service .without image data
I'm moving web-app from pure php to Symfony2 and going to save working old
I am building a web application that will need to allow users to save
I am trying to capture my web cam and then try to save it
I'm trying to download a file from the web and save it locally, but
Hi, I am trying to save data using web services, jquery and json. From
A bit of background: When I save a web page from e.g. IE8 as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.