Jump to content

PHP to MYSQL import table script


seat183

Recommended Posts

Hello, everyone.

 

I have tried making this for a project of mine. However I have migrated servers it used to work on the old Server and the tables are not being imported. It's basically a script to give the project new crimes every hour and create a random set of crimes into the mafia game's cities.

 

However when I run it.

 

No crimes are being imported into the tables and all the tables seem correct.

<?php
	require_once('include/init.php');

	$s = time();
	echo '...'."\n";
	Airport::generate();
	echo '* Airport prices generated'."\n";
	Blackjack::generate();
	echo '* Blackjacks generated'."\n";
	BlackMarketDealer::generate();
	echo '* Black market dealer stack generated'."\n";
	//Business::generate();
	//echo '* Businesses generated'."\n";
	Crime::generate();
	echo '* Crimes generated'."\n";
	DrugMarket::generate();
	echo '* Drugs are now available'."\n";
	House::generate();
	echo '* Houses ready to be burgled'."\n";
	ItemPrice::generate();
	echo '* Initial item prices set'."\n";
	OrganizedCrime::regenerate();
	echo '* Organized crimes generated'."\n";
	Population::recalculate();
	echo '* Population calculated'."\n";
	Property::generate();
	echo '* Properties generated'."\n";
	Prostitute::generate();
	echo '* Prostitutes generated'."\n";
	Slots::generate();
	echo '* Slots generated'."\n";
	$d = time() - $s;
	echo "\n".'** Install complete in '.$d.' seconds...'."\n";

	exit();

?>

Many thanks if anyone can pinpoint my errors.
Link to comment
https://forums.phpfreaks.com/topic/297116-php-to-mysql-import-table-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.