Guest User

Untitled

a guest
Dec 9th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home1/beejncom/public_html/versascore/pages/testseed.php on line 79
  2.  
  3.  
  4.  
  5.  
  6.  
  7. <?PHP
  8.  
  9. function sortSeed($weight)
  10. {
  11. /*
  12. id - int
  13. name - string
  14. state_placer - 'y'/'n'
  15. state_qual - 'y'/'n'
  16. district_placer - 'y'/'n'
  17. district_qual - 'y'/'n'
  18. wins - int
  19. losses - int
  20. */
  21.  
  22.  
  23.  
  24.  
  25. $counter = 1;
  26. $arrayCopy = array();
  27. $result = mysql_query("SELECT * FROM wrestlers WHERE weight = $weight");
  28.  
  29.  
  30.  
  31. while($row = mysql_fetch_array($result))
  32. {
  33.  
  34. $arrayCopy[$counter] = array("id" => "$row['id']","name" => "$row['name']", "team_id" => "$row['team_id']", "state_placer" => "$row['state_placer']", "state_qual" => "$row['state_qual']", "district_placer" => "$row[''district_placer]", "district_qual" => "$row['district_qual']", );
  35.  
  36.  
  37. $counter++;
  38.  
  39. }
  40.  
  41. return $arrayCopy;
  42.  
  43. }
  44.  
  45.  
  46.  
  47.  
  48. ?>
Add Comment
Please, Sign In to add comment