473,664 Members | 3,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parse error: syntax error, unexpected '"' in /home/thi8isju/public_html/bid_classic.p

4 New Member
Hi Guys..
I Heave the problem with my script of BPPennyMultiBid .

This is Error:

Parse error: syntax error, unexpected '"' in /home/thi8isju/public_html/bid_classic.php on line 159

This is the code:

Expand|Select|Wrap|Line Numbers
  1. <?
  2. include_once "./includes/config.inc.php";
  3. #// Run cron according to SETTINGS
  4. if($SETTINGS['cron'] == 2)
  5. {
  6.     include_once "cron.php";
  7. }
  8. include_once $include_path . "auction_types.inc.php";
  9. include_once $include_path . "dates.inc.php";
  10. $TIME = mktime(date("H") + $SETTINGS['timecorrection'], date("i"), date("s"), date("m"), date("d"), date("Y"));
  11. $NOW = date("YmdHis", $TIME);
  12.  
  13. #// ################################################
  14. #// Is the seller logged in?
  15. if(!isset($_SESSION['BPPENNYAUTOBID_LOGGED_IN']))
  16. {
  17.     $REDIRECT_AFTER_LOGIN = "index.php";
  18.     $_SESSION['REDIRECT_AFTER_LOGIN'] = $REDIRECT_AFTER_LOGIN;
  19.     Header("Location: user_login.php");
  20.     exit();
  21. }
  22.  
  23.  
  24. if(!$id) $id = $_REQUEST[id];
  25.  
  26. if(!$bid) $bid = $_REQUEST[bid];
  27.  
  28. $auction_type = $_POST['auction_type'];
  29.  
  30. $type = $_POST['form_type'];
  31.  
  32. $TPL_id = $id;
  33. /** first check if valid auction ID passed */
  34. $result = mysql_query("SELECT * FROM BPPENNYAUTOBID_auctions WHERE id=" . intval($id));
  35. // SQL error
  36. if(!$result)
  37. {
  38.     MySQLError($query);
  39.     exit();
  40. }
  41. $Data = mysql_fetch_array($result);
  42. $n = mysql_num_rows($result);
  43. $TPL_title = htmlspecialchars($Data['title']);
  44. $TPL_id_value = $id;
  45. $TPL_auctions_list_value = "";
  46. $query = "select bid,id from BPPENNYAUTOBID_bids where auction=\"" . intval($id) . "\" ORDER BY id DESC";
  47. $result___ = mysql_query($query);
  48. if(mysql_num_rows($result___) > 0)
  49. {
  50.     $ARETHEREBIDS = "<A HREF=\"" . $SETTINGS['siteurl'] . "item.php?id=$id&history=view#history\">$MSG_105</A>";
  51.     $CURRENTBID_ID = mysql_result($result___, 0, "id");
  52. }else
  53. {
  54.     unset($TPL_BIDS_value);
  55. }
  56. # // ###############################
  57. // $ITEM = mysql_fetch_array($result);
  58. // such auction does not exist, so exit
  59. if($n == 0)
  60. {
  61.     include_once ("header.php");
  62.     $TPL_errmsg = $ERR_606;
  63.     include_once (phpa_include("template_bid_php.html"));
  64.     include_once ("footer.php");
  65.     exit();
  66. }
  67.  
  68. # // ###############################    
  69. # check if the user has enough money on his account
  70. $bid_sum = 0;
  71. //echo "<pre>Data<br>";
  72. //print_r($Data);
  73. //echo "</pre>";
  74. // Retrieve bid value (one bid cost)
  75. if(ereg("^(\+?((([0-9]+(\.)?)|([0-9]*\.[0-9]+))([eE][+-]?[0-9]+)?))$", $Data['bid_value']))
  76. {
  77.     $bid_value = $Data['bid_value'];
  78. }else
  79.     $bid_value = 2;
  80. if($_POST['bid_type'] == 'simple')
  81. {
  82.     $bid_sum = $bid_value;
  83. }
  84. $query = "SELECT id, balance FROM BPPENNYAUTOBID_users WHERE nick='" . addslashes($_SESSION['BPPENNYAUTOBID_LOGGED_IN_USERNAME']) . "'";
  85.  
  86. //echo "bid_sum = $bid_sum<br>sql: $query";
  87. $result_b = mysql_query($query);
  88. $bal_row = mysql_fetch_array($result_b);
  89. $balance_ = $bal_row['balance'];
  90. $user_id_ = $bal_row['id'];
  91. // the user has not enough money    
  92. if($balance_ < 1)
  93. {
  94.     include_once ("header.php");
  95.     $TPL_errmsg = $ERR_32_0001;
  96.     $bidH = $bid_sum;
  97.     // Show list of bids
  98.     $auction_id = $id;
  99.     include_once ("bid_list.php");
  100.     include_once (phpa_include("template_bid_php.html"));
  101.     include_once ("footer.php");
  102.     exit();
  103. }
  104. $auctiondate = $Data['starts'];
  105. $auctionends = $Data['ends'];
  106. $item_title = $Data["title"];
  107. $item_description = $Data["description"];
  108. // check if auction isn't closed    
  109. $AuctionIsClosed = false;
  110. $closed = intval($Data["closed"]);
  111. $c = $Data["ends"];
  112. if(mktime(substr($c, 8, 2), substr($c, 10, 2), substr($c, 12, 2), substr($c, 4, 2), substr($c, 6, 2), substr($c, 0, 4)) <= $TIME) $AuctionIsClosed = true;
  113. if(($closed == 1) || ($AuctionIsClosed) || ($Data['suspended'] == 1))
  114. {
  115.     include_once ("header.php");
  116.     $TPL_errmsg = $ERR_614;
  117.     // Show list of bids
  118.     $auction_id = $id;
  119.     include_once ("bid_list.php");
  120.     include_once (phpa_include("template_bid_php.html"));
  121.     include_once ("footer.php");
  122.     exit();
  123. }
  124. $insert = "";
  125. // Check if the user pressed F5: if no - processing the bid, if yes - not processing
  126. if($_POST['f5_num'] != $_SESSION['f5_num1'])
  127. {
  128.     // Insert records of each bid (one - if simple, multiple - if 'range')
  129. //    if($_POST['bid_type'] == 'simple')
  130. //    {
  131. //        $insert = "INSERT INTO BPPENNYAUTOBID_bids(auction, bidder, bid, bidwhen)
  132. //               VALUES($id, $user_id_, " . converttonum($_POST['bid']) . ", '$NOW')";
  133. //        
  134. //        mysql_query($insert);
  135. //    }
  136. //    //update user's balance    
  137. //    $balance_ -= 1;
  138. //    $update = "UPDATE BPPENNYAUTOBID_users SET balance=$balance_
  139. //                  WHERE nick LIKE '" . addslashes($_SESSION['BPPENNYAUTOBID_LOGGED_IN_USERNAME']) . "' AND id=$user_id_";
  140. //    mysql_query($update);
  141. do_bid($id,$user_id_,$_POST['bid']);
  142. autobidProcessing($id);
  143.     // Save current F5 control number for next check
  144.     $_SESSION['f5_num1'] = $_POST['f5_num'];
  145. }
  146.  
  147.  
  148. /**
  149.  * NOTE: AUCTION AUTOEXTENSION
  150.  */
  151. $EXTSETTINGS = @mysql_fetch_array(@mysql_query("SELECT * FROM BPPENNYAUTOBID_auctionextension"));
  152. if($EXTSETTINGS['status'] == 'enabled')
  153. {
  154.     $__END = mktime(substr($auctionends, 8, 2), substr($auctionends, 10, 2), substr($auctionends, 12, 2), substr($auctionends, 4, 2), substr($auctionends, 6, 2), substr($auctionends, 0, 4));
  155.     if(($__END - $TIME) <= $EXTSETTINGS['timebefore'])
  156.     {
  157.         $auctionends = date("YmdHis", mktime(substr($auctionends, 8, 2), substr($auctionends, 10, 2), substr($auctionends, 12, 2) + $EXTSETTINGS['extend'], substr($auctionends, 4, 2), substr($auctionends, 6, 2), substr($auctionends, 0, 4)));
  158.     }
  159.     $query = "UPDATE BPPENNYAUTOBID_auctions set ends='$auctionends' WHERE id=" . intval($id);
  160.     if(!mysql_query($query))
  161.     {
  162.         MySQLError($query);
  163.         exit();
  164.     }
  165. }
  166.  
  167.  
  168. // Generate new F5 control number
  169. $f5_num = getRandomInt(20);
  170. // Check for winner - find maximum bid
  171. $check = "SELECT bid, bidder, COUNT(bid) AS bid_count
  172.               FROM BPPENNYAUTOBID_bids
  173.               WHERE auction=$id GROUP BY bid ORDER BY bid DESC ";
  174. $check_result = mysql_query($check);
  175. $winner_bid = 0;
  176. $winner_bid_count = 0;
  177. $winner_id = 0;
  178. if($check_row = mysql_fetch_array($check_result))
  179. {
  180.     $winner_bid = $check_row['bid'];
  181.     $winner_bid_count = $check_row['bid_count'];
  182.     if($winner_bid_count == 1) $winner_id = $check_row['bidder'];
  183. }
  184. // Find the current winner of the auction
  185.  
  186. while($check_row = mysql_fetch_array($check_result))
  187. {
  188.     // Find out if the bid is unique        
  189.  
  190.     if($check_row['bid_count'] == 1)
  191.     {
  192.         // If this unique bid is the highest - it is a winner
  193.  
  194.         if($check_row['bid'] > $winner_bid)
  195.         {
  196.             $winner_id = $check_row['bidder'];
  197.             $winner_bid = $check_row['bid'];
  198.         }
  199.     }
  200. }
  201. $MSG_WINNER = "";
  202. $is_winner = false;
  203. if($winner_id == $_SESSION['BPPENNYAUTOBID_LOGGED_IN'])
  204. {
  205.     $is_winner = true; // Current user is the winner
  206. }
  207. // Show message about current bid if it's winner bid, its state etc...
  208. switch($_POST['bid_type'])
  209. {
  210.     case "simple":
  211.         $result3 = mysql_query($check);
  212.         $is_unique = false;
  213.         while($row3 = mysql_fetch_array($result3))
  214.         {
  215.             if($row3['bid_count'] == 1 && $row3['bid'] == $_POST['bid'])
  216.             {
  217.                 $is_unique = true;
  218.                 break;
  219.             }
  220.         }
  221.         if($_POST['bid'] == $winner_bid && $is_winner)
  222.         { //This bid is winner
  223.         $MSG_WINNER = $MSG_31_0053;
  224.         }else
  225.         {
  226.             if($is_unique == true)
  227.             {
  228.                 $MSG_WINNER = $MSG_31_0054;
  229.                 if($is_winner == true)
  230.                 {
  231.                     $MSG_WINNER .= str_replace("<winner_bid>", $winner_bid, $MSG_31_0057);
  232.                 }
  233.             }else
  234.             {
  235.                 $MSG_WINNER = $MSG_31_0055;
  236.                 if($is_winner == true)
  237.                 {
  238.                     $MSG_WINNER .= str_replace("<winner_bid>", $winner_bid, $MSG_31_0057);
  239.                 }
  240.             }
  241.         }
  242.         break;
  243.     default:
  244.     break;
  245. }
  246.  
  247. #########################  Next Bid    #########################################################
  248. //$query = "select max(bid) AS maxbid, bidder FROM BPPENNYAUTOBID_bids WHERE auction=" . intval($id) . " GROUP BY auction, bidder ORDER BY maxbid DESC";
  249. //
  250. //$result_bids = mysql_query($query);
  251. //$customincrement = mysql_result($result, 0, "increment");
  252. //$max_bid = mysql_result($result_bids, 0, "maxbid");
  253. //
  254. ////echo '$max_bid='.$max_bid;
  255. //$minimum_bid = mysql_result($result, 0, "minimum_bid");
  256. //if($max_bid == 0)
  257. //{
  258. //    $MAX_BID = $minimum_bid;
  259. //    //// Added by Yosi 22 Jul 2009 - consider if auction starts with some value
  260. //    $max_bid = $minimum_bid;
  261. //}else
  262. //{
  263. //    $MAX_BID = $max_bid;
  264. //}
  265. ///* Get bid increment for current bid and calculate minimum bid */
  266. //
  267. //$query = "SELECT increment FROM BPPENNYAUTOBID_increments WHERE " . "((low <= $MAX_BID AND high >= $MAX_BID) OR " . "(low < $MAX_BID AND high < $MAX_BID)) ORDER BY increment DESC";
  268. //
  269. ////echo "<div style='display:none;'>sql:<br>";
  270. ////echo "$query</div>";
  271. //
  272. //$result_incr = mysql_query($query);
  273. //if(mysql_num_rows($result_incr) != 0)
  274. //{
  275. //    $increment = mysql_result($result_incr, 0, "increment");
  276. //}
  277. //if($customincrement > 0)
  278. //{    
  279. //    $increment = $customincrement;
  280. //}
  281. //if($max_bid == 0 || $atype == 2)
  282. //{
  283. //    $next_bid = $minimum_bid;
  284. //}else
  285. //{    
  286. //    $next_bid = $max_bid + $increment;
  287. //}
  288. //$TPL_next_bid_value = $next_bid;
  289. $TPL_next_bid_value = get_next_bid($id);
  290. ##################################################################
  291. //if($is_winner==false){
  292. //   $MSG_WINNER .= $MSG_31_0056;
  293. //}
  294. $auction_type = $_POST['auction_type'];
  295. $type = $_POST['form_type'];
  296. $TPL_id = $id;
  297. // Show list of bids
  298. $auction_id = $id;
  299. header("Location: item.php?id=".$id."&history=view#history");
  300. //
  301. //include_once ("bid_list.php");
  302. //include_once "header.php";
  303. //include_once phpa_include("template_bid_result_php.html");
  304. //include_once "footer.php";
  305. //exit();
  306.  
  307. function get_HOW_MANY($auction_id)
  308. {
  309.     $how_many = "*";
  310.     if(isset($_SESSION["BPPENNYAUTOBID_LOGGED_IN"]))
  311.     {
  312.         $sql = "SELECT asi.offers
  313.                 FROM BPPENNYAUTOBID_auctions_signed asi
  314.                 INNER JOIN BPPENNYAUTOBID_auctions a ON asi.auction_id=a.id
  315.                 WHERE asi.user_id=" . $_SESSION["BPPENNYAUTOBID_LOGGED_IN"] . " AND
  316.                    asi.auction_id=" . $auction_id . " AND a.auction_type>1";
  317.         $res = mysql_query($sql);
  318.         if($res)
  319.         {
  320.             if(mysql_num_rows($res) > 0)
  321.             {
  322.                 $row1 = mysql_fetch_array($res);
  323.                 $how_many = "Your number of offers available for this auction are: " . $row1['offers'];
  324.             }
  325.         }
  326.     }
  327.     return $how_many;
  328. }
  329.  
  330. //--------------------------------------------------------------------------
  331. // gets random integer
  332. //--------------------------------------------------------------------------
  333. function getRandomInt($length = 20)
  334. {
  335.     $template = "1234567890abcdefghijklmnopqrstuvwxyz";
  336.     //$template = "1234567890";
  337.     settype($template, "string");
  338.     settype($length, "integer");
  339.     settype($rndstring, "string");
  340.     settype($a, "integer");
  341.     settype($b, "integer");
  342.     for($a = 0; $a <= $length; $a++)
  343.     {
  344.         $b = rand(0, strlen($template) - 1);
  345.         $rndstring .= $template[$b];
  346.     }
  347.     return $rndstring;
  348. }
  349. function get_next_bid($auction_id) {
  350.  
  351.     if (intval($auction_id)>0) {
  352.         $result = mysql_query("SELECT * FROM BPPENNYAUTOBID_auctions WHERE id=" . intval($auction_id));
  353.         $result_bids = mysql_query("select max(bid) AS maxbid, bidder FROM BPPENNYAUTOBID_bids WHERE auction=" . intval($auction_id) . " GROUP BY auction, bidder ORDER BY maxbid DESC");
  354.  
  355.         $customincrement = mysql_result($result, 0, "increment");
  356.         $max_bid = mysql_result($result_bids, 0, "maxbid");
  357.         $minimum_bid = mysql_result($result, 0, "minimum_bid");
  358.         if($max_bid == 0) {
  359.             $MAX_BID = $minimum_bid;
  360.             //// Added by Yosi 22 Jul 2009 - consider if auction starts with some value
  361.             $max_bid = $minimum_bid;
  362.         }else
  363.         {
  364.             $MAX_BID = $max_bid;
  365.         }
  366.         /* Get bid increment for current bid and calculate minimum bid */
  367.  
  368.         $query = "SELECT increment FROM BPPENNYAUTOBID_increments WHERE " . "((low <= $MAX_BID AND high >= $MAX_BID) OR " . "(low < $MAX_BID AND high < $MAX_BID)) ORDER BY increment DESC";
  369.  
  370.         //echo "<div style='display:none;'>sql:<br>";
  371.         //echo "$query</div>";
  372.  
  373.         $result_incr = mysql_query($query);
  374.         if(mysql_num_rows($result_incr) != 0)
  375.         {
  376.             $increment = mysql_result($result_incr, 0, "increment");
  377.         }
  378.         if($customincrement > 0)
  379.         {    
  380.             $increment = $customincrement;
  381.         }
  382.  
  383.         if($max_bid == 0 || $atype == 2)
  384.         {
  385.             $next_bid = $minimum_bid;
  386.         }else
  387.         {    
  388.             $next_bid = $max_bid + $increment;
  389.         }
  390.         return $next_bid;
  391.     } else {
  392.         return 0;
  393.     }
  394. }
  395.  
  396. function autobidProcessing($auction_id=0) {
  397.     if (intval($auction_id)>0) {
  398.         //do {
  399.             $sql="SELECT
  400.                     BPPENNYAUTOBID_autobids.id,
  401.                     BPPENNYAUTOBID_autobids.bidder_id,
  402.                     BPPENNYAUTOBID_autobids.remained_bids,
  403.                     BPPENNYAUTOBID_autobids.max_amount,
  404.                     BPPENNYAUTOBID_users.balance
  405.                 FROM BPPENNYAUTOBID_autobids
  406.                 INNER JOIN BPPENNYAUTOBID_users ON BPPENNYAUTOBID_autobids.bidder_id=BPPENNYAUTOBID_users.id
  407.                 WHERE
  408.                     BPPENNYAUTOBID_autobids.auction_id='".$auction_id."'";
  409.             $result=mysql_query($sql);
  410.             //$return_flag=false;
  411.             $bid_flag=false;
  412.             while($row=mysql_fetch_array($result)) {
  413.                 if ($row['remained_bids']>0 && $row['max_amount']>get_next_bid($auction_id)) {
  414.                     if ($row['bidder_id']!=get_current_bidder_id($auction_id)) {
  415.                         if (do_bid($auction_id,$row['bidder_id'],get_next_bid($auction_id))) {
  416.                             mysql_query("UPDATE BPPENNYAUTOBID_autobids SET remained_bids=remained_bids-1 WHERE id='".$row['id']."'");
  417.                             $bid_flag=true;
  418.                         }
  419.                     }
  420.                 }
  421.             }
  422.         //} while ($bid_flag);
  423.     }
  424. }
  425.  
  426.  
  427. function do_bid($auction_id,$user_id,$bid_value) {
  428.     global $NOW;
  429.  
  430.  
  431.     if (intval($auction_id)>0 && intval($user_id)>0 && $bid_value>0) {
  432.  
  433.         $result_b = mysql_query("SELECT id, balance FROM BPPENNYAUTOBID_users WHERE id='" .$user_id. "'");
  434.         $bal_row = mysql_fetch_array($result_b);
  435.         $balance = $bal_row['balance'];
  436.  
  437.         $sql="SELECT ends,bid_value,closed FROM BPPENNYAUTOBID_auctions WHERE id='".$auction_id."'";
  438.         $result1=mysql_query($sql);
  439.         $ends = mysql_result($result1, 0, "ends");
  440.         $closed = mysql_result($result1, 0, "closed");
  441.  
  442.         if ($closed==0) {    
  443.             if ($balance>0) {
  444.                 if ((strtotime($ends)-strtotime($NOW)>=0) && (strtotime($ends)-strtotime($NOW)<=15)) {
  445.                     //$new_ends=date("YmdHis",strtotime($NOW)+32);
  446.                     //mysql_query("UPDATE BPPENNYAUTOBID_auctions SET jump30=1 WHERE id='".$auction_id."'");
  447.                     //echo "UPDATE auctions SET ends='".$new_ends."' WHERE auction_id='".$auction_id."'";
  448.                     $new_ends=date("YmdHis",strtotime($ends)+15-(strtotime($ends)-strtotime($NOW))+1);
  449.                     mysql_query("UPDATE BPPENNYAUTOBID_auctions SET ends='".$new_ends."', jump30=0 WHERE id='".$auction_id."'");
  450.  
  451.                 }
  452.                 if (strtotime($ends)-strtotime($NOW)>=0) {
  453.                     $insert = "INSERT INTO BPPENNYAUTOBID_bids(auction, bidder, bid, bidwhen)
  454.                                VALUES('" .$auction_id. "','" .$user_id. "','" .converttonum(get_next_bid($auction_id)). "','" .$NOW. "')";
  455.  
  456.  
  457.                     mysql_query($insert);
  458.  
  459.  
  460.  
  461.                     $balance -= 1;
  462.                     $update = "UPDATE BPPENNYAUTOBID_users SET balance=".$balance."
  463.                                   WHERE id=".$user_id;
  464.  
  465.                     mysql_query($update);
  466.                     return true;
  467.                 } else {
  468.                     return false;
  469.                 }
  470.             } else {
  471.                 return false;    
  472.             }
  473.         } else {
  474.             return false;
  475.         }
  476.     } else {
  477.         return false;
  478.     }
  479. }
  480.  
  481. function converttonum($convertnum){
  482.     $bits = explode(",",$convertnum); // split input value up to allow checking
  483.  
  484.     $first = strlen($bits[0]); // gets part before first comma (thousands/millions)
  485.     $last = strlen($bits[1]); // gets part after first comma (thousands (or decimals if incorrectly used by user)
  486.  
  487.     if ($last <3){ // checks for comma being used as decimal place
  488.         $convertnum = str_replace(",",".",$convertnum);
  489.     }
  490.     else{ // assume comma is a thousands seperator, so remove it
  491.         $convertnum = str_replace(",","",$convertnum);
  492.     }
  493.  
  494.     return $convertnum; 
  495.  
  496. function get_current_bidder_id($auction_id) {
  497.     $sql = "SELECT bid, bidder, COUNT(bid) AS bid_count
  498.               FROM BPPENNYAUTOBID_bids
  499.               WHERE auction=".$auction_id." GROUP BY bid ORDER BY bid DESC ";
  500.     $result = mysql_query($sql);
  501.     if ($row1=mysql_fetch_array($result)) {
  502.         return $row1['bidder'];
  503.     } else {
  504.         return 0;
  505.     }
  506. }
  507.  
  508. ?>
I Need Help..

Thanks
May 19 '13 #1
4 2088
Dormilich
8,658 Recognized Expert Moderator Expert
your posted code does not have such an error.
May 20 '13 #2
thiagorisan
4 New Member
Hi Dormilich, Thanks for answering.

When I click on the item for auction and then click on BID, this error occurs.
On the homepage, when you see all products, you can give the BIDS and works normally now when you click the item and then click BIDS, the error occurs.

Would know tell me something about it?

thanks to all
May 20 '13 #3
Dormilich
8,658 Recognized Expert Moderator Expert
the only way that error message makes sens is if $auctionends contains invalid values.

since I’m not going to dig through 500 lines of code, I can only give hints. first you need to check (var_dump()) every variable that is used and print out every SQL statement to look for invalidities.
May 23 '13 #4
thiagorisan
4 New Member
WAS FIX.... \o/

$query = "UPDATE BPPENNYAUTOBID_ auctions set ends='$auctione nds' WHERE id=" . intval($id)"

This is correct Code...

Thanks Guys... ^^
May 27 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

25
2854
by: URmusicandvideo | last post by:
I have just finshed my first php code and posted it online and I am getting a Parse error: syntax error, unexpected T_VARIABLE in /home/hydeands/public_html/phpmail.php on line 45 But when I look at it it looks ok. . I am just creating a php for a online form to direct the email. Here is the code. <?php $emailsubject = 'Judgement Recovery Application' ; $web = 'mwcinvestigation@example.net' ;
14
5496
riverdale1567
by: riverdale1567 | last post by:
Hi I am a newbie trying to get some of my first code working, yada yada yada. I have a drop down box which chooses a state then takes the post data to 'processform2.php' to use that to pull up all the rows which have the corresponding state. I am getting this 'Parse error: syntax error, unexpected T_STRING in /home/attorney/public_html/' on line 13 <? $username="XXXXXXXX"; $password="XXXXXX"; $database="XXXXXXXX";
4
3324
by: Graviz | last post by:
I am gettin a error message on this script can someone help me. I can't see what is wrong. Thanks in advance for any help you can give me. here is the error and code. Parse error: syntax error, unexpected T_VARIABLE in /home/a4284579/public_html/contactformphp.php on line 27 <?php /* Subject and Email Variables*/ $emailSubject = 'Client Information Scripting!';
3
5186
by: brkseven | last post by:
Looking for help with this Contact Form. The error is on line 1, but that' doesn't mean a lot, I think. In fact, a php syntax check passed it, but I was hoping for an easy syntax error, it looks more complicated now. Anyway, here's the error: "Parse error: syntax error, unexpected T_VARIABLE in /home/xxx/public_html/yyy/zzz/contactengine.php on line 1" It's a contact form from css-tricks, when I submit that's what I get.
5
2857
by: Mandyrjs | last post by:
hi im new to php and i want to code a admin login page where i want to match the values from the login form with the values of the database table.....when i run the login page after entering the user name and the password i've got a Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\php\validate.php on line 16. Can anybody please help me to slove this matter. validate.php <?php session_start(); $username= $_POST; $password=...
13
3785
Topbidder
by: Topbidder | last post by:
I have this error on the code Parse error: syntax error, unexpected '"' in /home/topbidd/public_html/bid2/bid_classic.php on line 159 now i thought the error was this It seems that the code has an extra " at the end before the ; VALUES('" .$auction_id. "','" .$user_id. "','" .converttonum(get_next_bid($auction_id)). "','" .$NOW. "')";
3
2649
by: CYNTHIA CUTRER | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Log</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="title" content="Walker Energy Brokerage" /> <meta name="description" content="National Energy Brokering Firm" /> <meta...
2
3098
by: Vicki Hendra | last post by:
Hi I am new to php fullstop I and colleagues have setup wordpress blogs for our local towns, giving the local businesses free advertisment. Part of the problem started when using wordpress plugins/business-directory. when the form is filled in with the business information, for some reason the description field is not allowing all the details to be present when they are accessed. When accessing wordpress forums, it was noted that I was not...
5
1928
by: Adam Pelling | last post by:
I'm getting this error Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/neblncbt/public_html/forum/includes/acp/acp_board.php on line 69 Here is the acp_board.php file <?php /** * * @package acp
3
4249
by: Christina Brook | last post by:
I am fairly new at this and I am I am receiving this error code: Parse error: syntax error, unexpected T_STRING in /home/brooks/christinalbrooks-www/index.html on line 1 for this code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title>
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7375
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1759
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.