Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.