Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- <?PHP
- function sortSeed($weight)
- {
- /*
- id - int
- name - string
- state_placer - 'y'/'n'
- state_qual - 'y'/'n'
- district_placer - 'y'/'n'
- district_qual - 'y'/'n'
- wins - int
- losses - int
- */
- $counter = 1;
- $arrayCopy = array();
- $result = mysql_query("SELECT * FROM wrestlers WHERE weight = $weight");
- while($row = mysql_fetch_array($result))
- {
- $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']", );
- $counter++;
- }
- return $arrayCopy;
- }
- ?>
Add Comment
Please, Sign In to add comment