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?

Link to comment
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.