Jump to content

Iank1968

Members
  • Posts

    65
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Iank1968's Achievements

Member

Member (2/5)

0

Reputation

  1. lol thats a new way of putting it. I will check all my {} and see where the missing one is. Thanks
  2. I took the else out and no im getting Parse error: syntax error, unexpected $end in /home/ianapps/public_html/globetrotters/common.php on line 2001 I have a ?> there thats the last line in the common.php file, what would that be?
  3. so how do you recomend I clean up that code? Iam a newbie. Thanks
  4. Ian getting a Parse error: syntax error, unexpected T_ELSE in /home/ianapps/public_html/globetrotters/common.php on line 804 function HandleOutstandingSendSuccesses ($user) { global $logsend_table; global $facebook; global $db_to_desc_send; //$rx_money = false; $result = Query ("SELECT id,uid_from,what,amt FROM $logsend_table WHERE uid_to=$user and notified='0' and trade=0"); $num_rows = mysql_num_rows ($result); for ($i=0; $i<$num_rows; $i++) { $uid_from = mysql_result ($result, $i, "uid_from"); $what = mysql_result ($result, $i, "what"); $amt = mysql_result ($result, $i, "amt"); $id = mysql_result ($result, $i, "id"); try { $info = $facebook->api_client->users_getInfo ($uid_from, "name"); } catch (FacebookRestClientException $e) { $info = ""; } //$persons_name = $info[0]['name']; $persons_name = isset ($info[0]['name']) && $info[0]['name'] != "" ? $info[0]['name'] : "Someone"; if ($what == "money") { //$rx_money = true; $amt_f = sprintf ("%.2f", $amt/100); ?> <fb:success message="WOW!!!! <?=$persons_name;?> just sent you $<?=$amt_f;?> airfarebucks!" /> <? } else { $prize_f = $db_to_desc_send[$what]; ?> <fb:success message="WOW!!!! <?=$persons_name;?> just sent you <?=$amt;?> of the following prize: <?=$prize_f;?>" /> <? } Query ("UPDATE $logsend_table SET notified=1 where id=$id"); } } (line 804) else { <-------------------------***************line 804*********************** $prize_f = $db_to_desc_send[$what]; } ?> //$result_new = Query ("UPDATE $logsend_table SET notified='1' where uid_to=$user"); } function HandleCoupons ($user) { global $users_table; $result = Query ("SELECT sum(coupon1) FROM $users_table WHERE uid=$user and coupon1_notified='0'"); if (mysql_result ($result, 0) > 0) { $result_new = Query ("UPDATE $users_table SET coupon1_notified='1' where uid=$user"); } return mysql_result ($result, 0); } Can anyone see why I would be getting that error? Thanks
  5. I was wondering how to code a reloader to reload. This is for a point and click game. the url I want to keep refreshing automatically is: http://apps.facebook.com/extremintonfe/?id=hunt_1&t=707e4781503fe6f12952fbc598806e27 is there a simple code I can create to do this? I want to be able to have the players put in how many times they want it to refresh. Thanks
  6. lol yep, its not my code entirely. I did write some of it, probably all the errors lol. I have been looking at this code for weeks to no avail. If you want to try and look at it I will send it to you, if not no worries. im just getting an aneurism from it lol
  7. I actually used the <?php and got the error, left it out and its ok, this is a new error. every 10-20 lines or so theres an error. Would you be interested in seeing the code?
  8. Do you feel like going threw 1900 lines of code? lol
  9. Well that fixed that problem, thank you very much. Now I have a boat load more coming up. This code is all wrong. Parse error: syntax error, unexpected T_IF, expecting T_VARIABLE or '$' in /home/ianapps/public_html/globetrotters/common.php on line 278 and im sure there are 100's more.
  10. I think im gonna try echoing it, everytime I put <? or <?php I get the parse error
  11. lol ok np. How long will that be? im in Toronto and its 1:30am. just wondering if I should wait up.
  12. ok I am gonna post from line 1 to just past the error. <?php require 'settings.php'; $username = "ianapps"; $password = "wdLlGQbZlswP"; $hostname = "localhost"; $conn = mysql_connect ($dbhost, $dbuser, $dbpass); $sel = mysql_select_db ($dbname, $conn); if (!$sel || !$conn) { exit; } function Query ($q) { global $conn; $result = mysql_query ($q, $conn); if (!$result) { } return $result; } function getprizeproperty($fprize) { } function TransferPrize ($from, $to, $prize, $amt) { if (GetPrizeProperty ($from, $prize) >= $amt) { ChangePrizeProperty ($from, $prize, -$amt, false); ChangePrizeProperty ($to, $prize, $amt, false); return true; } return false; } function TransferMoney ($from, $to, $amt) { if (GetMoney ($from) >= $amt*100) { AlterMoney ($from, -$amt*100); AlterMoney ($to, $amt*100); return true; } return false; } function IsThereEnough ($uid, $what, $amt) { if ($what == 'money') { if (GetMoney ($uid) < $amt) return false; } else { if (GetPrizeProperty ($uid, $what) < $amt) return false; } return true; } function LogStealAttempt ($user_from, $user_to, $what, $amt) { global $logsendneg_table; Query ("INSERT INTO $logsendneg_table SET uid_from=$user_from, uid_to=$user_to, what='$what', amt=$amt"); } function LogSend ($user_from, $user_to, $what, $amt, $trade=0) { global $logsend_table; Query ("INSERT INTO $logsend_table SET uid_from=$user_from, uid_to=$user_to, what='$what', amt=$amt, trade=$trade"); } function LogTrade ($user_from, $user_to, $tx_what, $tx_amt, $rx_what, $rx_amt) { global $logtrade_table; Query ("INSERT INTO $logtrade_table SET uid_from=$user_from, uid_to=$user_to, what='$tx_what', amt=$tx_amt, what_req='$rx_what', amt_req=$rx_amt"); } function GetInTrades ($user) { global $logtrade_table; $result = Query ("SELECT id,unix_timestamp(date) as datets,uid_from,what,amt,what_req,amt_req,auth FROM $logtrade_table WHERE uid_to=$user and hide=0 and auth=0 ORDER by date DESC"); // get trades coming into you $i=0; while ($row = mysql_fetch_array ($result)) { $in[$i]['id'] = $row['id']; $in[$i]['date'] = $row['datets']; $in[$i]['uid_from'] = $row['uid_from']; $in[$i]['what'] = $row['what']; $in[$i]['amt'] = $row['amt']; $in[$i]['what_req'] = $row['what_req']; $in[$i]['amt_req'] = $row['amt_req']; $in[$i]['auth'] = $row['auth']; $i++; } return $in; } function GetInTradesSideBar ($user) { global $logtrade_table; $result = Query ("SELECT id,unix_timestamp(date) as datets,uid_from,what,amt,what_req,amt_req,auth FROM $logtrade_table WHERE uid_to=$user and hide=0 and auth=0 ORDER by date DESC"); // get trades coming into you $i=0; if (mysql_num_rows ($result) == 0) return "<br/>."; $a = '<table>'; while ($row = mysql_fetch_array ($result)) { $u = $row['uid_from']; $a .= '<tr><td bgcolor="#eaeaea"><fb:profile-pic uid="'.$u.'"/> <br/><fb:name uid="'.$u.'"/></td><td bgcolor="#eaeaea">' . date ("F j", $row['datets'] ) . ' - <b><a href="?id=trade">View</a></b></td></tr>'; $i++; } $a .= '</table>'; return $a; } function GetOutTrades ($user) { global $logtrade_table; $result = Query ("SELECT id,unix_timestamp(date) as datets,uid_to,what,amt,what_req,amt_req,auth,hide FROM $logtrade_table WHERE uid_from=$user ORDER by date DESC limit 50 "); // get trades coming into you $i=0; while ($row = mysql_fetch_array ($result)) { $out[$i]['id'] = $row['id']; $out[$i]['date'] = $row['datets']; $out[$i]['uid_to'] = $row['uid_to']; $out[$i]['what'] = $row['what']; $out[$i]['amt'] = $row['amt']; $out[$i]['what_req'] = $row['what_req']; $out[$i]['amt_req'] = $row['amt_req']; $out[$i]['auth'] = $row['auth']; $out[$i]['hide'] = $row['hide']; $i++; } return $out; } // some php function ParseInTrades ($data) { global $db_to_desc_send; if (!count($data)) return; global $facebook; } <table border="0" colspacing="2" colpadding="2"> <tr> <th width="100"> <h3 class="subtitle">Date</h3> </th> <th width="120"> <h3 class="subtitle">Name</h3> </th> <th width="120"> <h3 class="subtitle">You Get</h3> </th> <th width="120"> <h3 class="subtitle">They want</h3> </th><th width="80"> <h3 class="subtitle">Action</h3> </th> </tr>
  13. ok I took out <?php ?> and now its saying Parse error: syntax error, unexpected '<' in /home/ianapps/public_html/globetrotters/common.php on line 118 line 118 - 120 <table border="0" colspacing="2" colpadding="2"> <tr> <th width="100"> <h3 class="subtitle">Date</h3> </th> <th width="120"> <h3 class="subtitle">Name</h3> </th> <th width="120"> <h3 class="subtitle">You Get</h3> </th> <th width="120"> <h3 class="subtitle">They want</h3> </th><th width="80"> <h3 class="subtitle">Action</h3> </th> </tr>
×
×
  • 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.