Jump to content

T_variable error


Scummy12

Recommended Posts

<?php
$iStatList= file_get_contents("http://75.126.76.220/mob_hi5/get_hit_list?user_id=492711089&level=1&session_id=b00b6b4d2d7b124a41c3c5650af902fe5f718a61&auth_key=b00d1f9387158859780c072555ed822124728e57&original_url=http://75.126.76.220/mob_hi5/get_hit_list&nocache=1274268208017&");
	$amount = 	split("<amount>", $iStatList);
	$amount = 	split("<", $level[1]);
	$level=   split("<level>", $iStatList);
	$level=	split("</level>", $level[1]);
	$user_id= split("<user_id>", $iStatList);
	$user_id= split("</user_id>", $user_id[1]);
echo $user_id[0];
echo $level[0];
if ($level[0]>20)
	{	header("Location: http://75.126.76.220/mob_hi5/attack_hitlist?user_id=492711089&target_id="$user_id[0]"&session_id=b00b6b4d2d7b124a41c3c5650af902fe5f718a61&auth_key=b00d1f9387158859780c072555ed822124728e57&original_url=http://75.126.76.220/mob_hi5/attack_hitlist&nocache=1274268208017&");
}

elseif 
{echo "no targets"}

?>

Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\statlist.php  on line 12

Anybody know why?

Link to comment
Share on other sites

You're not concatenating the string correctly.

 

header("Location: http://75.126.76.220/mob_hi5/attack_hitlist?user_id=492711089&target_id=" . $user_id[0] . "&session_id=b00b6b4d2d7b124a41c3c5650af902fe5f718a61&auth_key=b00d1f9387158859780c072555ed822124728e57&original_url=http://75.126.76.220/mob_hi5/attack_hitlist&nocache=1274268208017&");

Link to comment
Share on other sites

After you fix the errors that AlexWD pointed out in the statlist.php code, you will need to do something about the error in cider.php.

 

 

That is the entire script

 

That's not where the error you just posted is occurring at. Please read your error messages and the replies people post.

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.