phucvo0709 / Clone-Google-Search-Engine

Clone Google Search Engine PHP PDO + MYSQL
34 stars 30 forks source link

crawler not working #2

Open RealAquilus opened 4 years ago

RealAquilus commented 4 years ago

submit-url.php does not put anything in the db

mrfoxie commented 4 years ago

you have to import this file

assets/db_google.sql into database that you have create then it will allow you to add URL as well as images in the database

ryan3859 commented 3 years ago

you have to import this file

assets/db_google.sql into database that you have create then it will allow you to add URL as well as images in the database

What does that mean

mrfoxie commented 3 years ago

what exactly the error is showing when your submitting site in submit-url.php ? can you attach screenshot

mrfoxie commented 3 years ago

you have to import this file

assets/db_google.sql into database that you have create then it will allow you to add URL as well as images in the database

What does that mean

can I know which software are you using such as xampp or wamp64?????

fakerybakery commented 2 years ago

Hello everyone, I have found a solution to this issue. The problem is that the "clicks" value in the MySQL database has no default value and is not set in the crawl.php file. Here is the solution: In phpMyAdmin, set the default value of the clicks row to 0 and save. Run the crawler and it should work perfectly.