seat183 Posted June 30, 2015 Share Posted June 30, 2015 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. Quote Link to comment https://forums.phpfreaks.com/topic/297116-php-to-mysql-import-table-script/ Share on other sites More sharing options...
mac_gyver Posted June 30, 2015 Share Posted June 30, 2015 the code you posted above is only calling other code that's actually doing the work. without the relevant code, we cannot possibly tell you anything about why it isn't working or even what to look at next to find out more about what's going on. Quote Link to comment https://forums.phpfreaks.com/topic/297116-php-to-mysql-import-table-script/#findComment-1515277 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.