Jump to content

Fatal error: Cannot access empty property in ??


deadlypanther

Recommended Posts

Right,I'l introduce myself at the same time,im William,i work with ababmxking on www.racing-generation.com

 

Anyway lately i've been having a problem,i made a partshop for the game,and for the first 2 months its worked fine,we never edited anything about it,then we changed host cause the hosting company got bought... and suddently the error

Fatal error: Cannot access empty property in /home/racingg/public_html/partshop.php on line 98

 

This is from require.php :

$carid    = $info2['carid'];

 

Needed information for the line stated in  partshop.php :

 

if ( $_POST['select1'] != 'none' ) {

$ptype = "engine";

$lvl  = $_POST['select1']; }

 

$typget = mysql_query("SELECT * FROM cars WHERE id='$carid'");

$typfet = mysql_fetch_object($typget);

$ttype = $typfet->$ptype;

$type1 = $ttype + 1;

 

if ($typfet->$type <= $lvl ) {

echo"<center>Your $ptype is either too low or high to be upgraded with this level ($ptype LV$lvl )</center>";

$error = "yes"; }

 

can anyone help?

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.