Jump to content

sstangle73

Members
  • Posts

    288
  • Joined

  • Last visited

Everything posted by sstangle73

  1. sstangle73

    Copyright

    http://maddogmania.com/index.php could anyone figure out why the copyright is not at the bottom of the page? css located at: http://maddogmania.com/css/css.css Thanks!
  2. Thanks!!
  3. $text=''; for($i=1; $i<=$roster_max; $i++){ $text .= " LINE41 `player" . $i . "_number` = '$_POST[player" . $i ."_number]' , `player" . $i . "_name` = '$_POST[player" . $i ."_name]' , `player" . $i . "_grade` = '$_POST[player" . $i ."_grade]' , `player" . $i . "_phone` = '$_POST[player" . $i ."_phone]' , `player" . $i . "_email` = '$_POST[player" . $i ."_email]' , `player" . $i . "_parents` = '$_POST[player" . $i ."_parents]' , "; } Thanks for the help!
  4. wow never mind im dumb had to look above the error :[ if($_POST['save']){ thanks!
  5. at this point i think i just have been working too long . . . Parse error: syntax error, unexpected ';' in /homepages/27/d193007783/htdocs/maddogmania/application/roster.php on line 10 this code is massive but i would greatly appericiate if someone could look at this line of code and find the error $query="UPDATE `team_roster` SET `team_name` = '$_POST[team_name]', `organization` = '$_POST[organization]', `team_color` = '$_POST[team_color]', `coach1_name` = '$_POST[coach1_name]', `coach1_phone` = '$_POST[coach1_phone]', `coach1_email` = '$_POST[coach1_email]', `coach2_name` = '$_POST[coach2_name]', `coach2_phone` = '$_POST[coach2_phone]', `coach2_email` = '$_POST[coach2_email]', `player1_number` = '$_POST[player1_number]', `player1_name` = '$_POST[player1_name]', `player1_grade` = '$_POST[player1_grade]', `player1_phone` = '$_POST[player1_phone]', `player1_email` = '$_POST[player1_email]', `player1_parents` = '$_POST[player1_parents]', `player2_number` = '$_POST[player2_number]', `player2_name` = '$_POST[player2_name]', `player2_grade` = '$_POST[player2_grade]', `player2_phone` = '$_POST[player2_phone]', `player2_email` = '$_POST[player2_email]', `player2_parents` = '$_POST[player2_parents]', `player3_number` = '$_POST[player3_number]', `player3_name` = '$_POST[player3_name]', `player3_grade` = '$_POST[player3_grade]', `player3_phone` = '$_POST[player3_phone]', `player3_email` = '$_POST[player3_email]', `player3_parents` = '$_POST[player3_parents]', `player4_number` = '$_POST[player4_number]', `player4_name` = '$_POST[player4_name]', `player4_grade` = '$_POST[player4_grade]', `player4_phone` = '$_POST[player4_phone]', `player4_email` = '$_POST[player4_email]', `player4_parents` = '$_POST[player4_parents]', `player5_number` = '$_POST[player5_number]', `player5_name` = '$_POST[player5_name]', `player5_grade` = '$_POST[player5_grade]', `player5_phone` = '$_POST[player5_phone]', `player5_email` = '$_POST[player5_email]', `player5_parents` = '$_POST[player5_parents]', `player6_number` = '$_POST[player6_number]', `player6_name` = '$_POST[player6_name]', `player6_grade` = '$_POST[player6_grade]', `player6_phone` = '$_POST[player6_phone]', `player6_email` = '$_POST[player6_email]', `player6_parents` = '$_POST[player6_parents]', `player7_number` = '$_POST[player7_number]', `player7_name` = '$_POST[player7_name]', `player7_grade` = '$_POST[player7_grade]', `player7_phone` = '$_POST[player7_phone]', `player7_email` = '$_POST[player7_email]', `player7_parents` = '$_POST[player7_parents]', `player8_number` = '$_POST[player8_number]', `player8_name` = '$_POST[player8_name]', `player8_grade` = '$_POST[player8_grade]', `player8_phone` = '$_POST[player8_phone]', `player8_email` = '$_POST[player8_email]', `player8_parents` = '$_POST[player8_parents]', `player9_number` = '$_POST[player9_number]', `player9_name` = '$_POST[player9_name]', `player9_grade` = '$_POST[player9_grade]', `player9_phone` = '$_POST[player9_phone]', `player9_email` = '$_POST[player9_email]', `player9_parents` = '$_POST[player9_parents]', `player10_number` = '$_POST[player10_number]', `player10_name` = '$_POST[player10_name]', `player10_grade` = '$_POST[player10_grade]', `player10_phone` = '$_POST[player10_phone]', `player10_email` = '$_POST[player10_email]', `player10_parents` = '$_POST[player10_parents]', `player11_number` = '$_POST[player11_number]', `player11_name` = '$_POST[player11_name]', `player11_grade` = '$_POST[player11_grade]', `player11_phone` = '$_POST[player11_phone]', `player11_email` = '$_POST[player11_email]', `player11_parents` = '$_POST[player11_parents]', `player12_number` = '$_POST[player12_number]', `player12_name` = '$_POST[player12_name]', `player12_grade` = '$_POST[player12_grade]', `player12_phone` = '$_POST[player12_phone]', `player12_email` = '$_POST[player12_email]', `player12_parents` = '$_POST[player12_parents]', `player13_number` = '$_POST[player13_number]', `player13_name` = '$_POST[player13_name]', `player13_grade` = '$_POST[player13_grade]', `player13_phone` = '$_POST[player13_phone]', `player13_email` = '$_POST[player13_email]', `player13_parents` = '$_POST[player13_parents]', `player14_number` = '$_POST[player14_number]', `player14_name` = '$_POST[player14_name]', `player14_grade` = '$_POST[player14_grade]', `player14_phone` = '$_POST[player14_phone]', `player14_email` = '$_POST[player14_email]',`player14_parents` = '$_POST[player14_parents]', `player15_number` = '$_POST[player15_number]', `player15_name` = '$_POST[player15_name]', `player15_grade` = '$_POST[player15_grade]', `player15_phone` = '$_POST[player15_phone]', `player15_email` = '$_POST[player15_email]', `player15_parents` = '$_POST[player15_parents]', `player16_number` = '$_POST[player16_number]', `player16_name` = '$_POST[player16_name]', `player16_grade` = '$_POST[player16_grade]', `player16_phone` = '$_POST[player16_phone]', `player16_email` = '$_POST[player16_email]', `player16_parents` = '$_POST[player16_parents]', `player17_number` = '$_POST[player17_number]', `player17_name` = '$_POST[player17_name]', `player17_grade` = '$_POST[player17_grade]', `player17_phone` = '$_POST[player17_phone]', `player17_email` = '$_POST[player17_email]', `player17_parents` = '$_POST[player17_parents]', `player18_number` = '$_POST[player18_number]', `player18_name` = '$_POST[player18_name]', `player18_grade` = '$_POST[player18_grade]', `player18_phone` = '$_POST[player18_phone]', `player18_email` = '$_POST[player18_email]', `player18_parents` = '$_POST[player18_parents]', `updated` = now() WHERE `id` = '$_POST[id]' LIMIT 1";
  6. Thanks thorpe!!
  7. i am trying to make a script that will make a varible 18 times here is what i have something is wrong for($i=1; $i<=18; $i++){ ${"player" . $i . "_number"} = ${$array[player . $i . _number]}; } it is something with the second half the ${$array[player . $i . _number]}; i am trying to get it so it will do: $player1_number = $array['player1_number']; $player2_number = $array['player2_number']; $player3_number = $array['player3_number']; ect Thanks! EDIT the error i am getting is Notice: Use of undefined constant player - assumed 'player' in /homepages/27/d193007783/htdocs/maddogmania/application/roster.php on line 22 Notice: Use of undefined constant _number - assumed '_number' in /homepages/27/d193007783/htdocs/maddogmania/application/roster.php on line 22 Notice: Undefined variable: 07 in /homepages/27/d193007783/htdocs/maddogmania/application/roster.php on line 22 the third one where it has the variable 07, 07 is what the $player1_number should be set to if it worked right
  8. thanks!
  9. ob_start(); header("Location: http://nyelitefc.com/thanks_contact.php"); ob_end_flush(); didnt work?
  10. how do i do something to the effect of a header("Location: blah"); if i have already sent text? Thanks
  11. wow its been along night i havent coded like 3 lines lol thanks!
  12. <?php if (ereg($team, 'BU')) { $team2 = str_replace("BU", "Boys U", $team); } else { $team2 = str_replace("GU", "Girls U", $team); }?> how do i get it so that if $team contains 'BU' it will change BU to Boys U and if it has GU it will change it to Girls U
  13. no i figured the rest of the file would be a little excessive. well thats what im tring to figure out how to show the field they picked in the echo 118 is <option value=\"BU23\" " . if($team == "BU23"){echo "/"selected/"";} . ">Boys U23</option>
  14. <?php if($_POST['team_tryout'] == "null"){ $team = $_POST['team_tryout']; $text = " <tr> <td width=\"35%\">Team To Tryout For:</td> <td width=\"65%\"> <select name=\"team_tryout\" class=\"input_style_bad\"> <option value=\"BU23\" " . if($team == "BU23"){echo "/"selected/"";} . ">Boys U23</option> <option value=\"BU19\" " . if($team == "BU19"){echo "/"selected/"";} . ">Boys U19</option> <option value=\"BU18\" " . if($team == "BU18"){echo "/"selected/"";} . ">Boys U18</option> <option value=\"BU17\" " . if($team == "BU17"){echo "/"selected/"";} . ">Boys U17</option> <option value=\"BU16\" " . if($team == "BU16"){echo "/"selected/"";} . ">Boys U16</option> <option value=\"BU15\" " . if($team == "BU15"){echo "/"selected/"";} . ">Boys U15</option> <option value=\"BU14\" " . if($team == "BU14"){echo "/"selected/"";} . ">Boys U14</option> <option value=\"BU13\" " . if($team == "BU13"){echo "/"selected/"";} . ">Boys U13</option> <option value=\"BU12\" " . if($team == "BU12"){echo "/"selected/"";} . ">Boys U12</option> <option value=\"BU11\" " . if($team == "BU11"){echo "/"selected/"";} . ">Boys U11</option> <option value=\"BU10\" " . if($team == "BU10"){echo "/"selected/"";} . ">Boys U10</option> <option value=\"BU8\" " . if($team == "BU8"){echo "/"selected/"";} . ">Boys U8</option> <option value=\"null\" " . if($team == "null"){echo "/"selected/"";} . ">---------</option> <option value=\"GU23\" " . if($team == "GU23"){echo "/"selected/"";} . ">Girls U23</option> <option value=\"GU19\" " . if($team == "GU19"){echo "/"selected/"";} . ">Girls U19</option> <option value=\"GU18\" " . if($team == "GU18"){echo "/"selected/"";} . ">Girls U18</option> <option value=\"GU17\" " . if($team == "GU17"){echo "/"selected/"";} . ">Girls U17</option> <option value=\"GU16\" " . if($team == "GU16"){echo "/"selected/"";} . ">Girls U16</option> <option value=\"GU15\" " . if($team == "GU15"){echo "/"selected/"";} . ">Girls U15</option> <option value=\"GU14\" " . if($team == "GU14"){echo "/"selected/"";} . ">Girls U14</option> <option value=\"GU13\" " . if($team == "GU13"){echo "/"selected/"";} . ">Girls U13</option> <option value=\"GU12\" " . if($team == "GU12"){echo "/"selected/"";} . ">Girls U12</option> <option value=\"GU11\" " . if($team == "GU11"){echo "/"selected/"";} . ">Girls U11</option> <option value=\"GU10\" " . if($team == "GU10"){echo "/"selected/"";} . ">Girls U10</option> <option value=\"GU8\" " . if($team == "GU8"){echo "/"selected/"";} . ">Girls U8</option> </select></td> </tr> <input type=\"hidden\" name=\"goodsubmit\" value=\"bad\"> "; echo $text; $submit1 = "bad"; }?> cant quit seem to get it to work thanks in advance for the help!
  15. got it the script was getting ended b4 that point all set now!
  16. nope! me either i dont quite get it
  17. i have the code as follows but the email wont send any advice? thanks
  18. switching it to relative seemed to work for now thanks for the help iandavia
  19. i just checked it its the right number of </divs> im not going to try that because the copyright is included with php so its always at the bottom of the pages it works on the other pages just not on this one page. so im alittle confused --- edit ---- i just tried that with an "extra" copyright and it doesnt look right.
  20. it didnt help all it did was bring the copy to the top of the page
  21. http://maddogmania.com/index.php http://maddogmania.com/css/css.css the copyright shows up in the middle of the text and i cant figure out how to get it to the end thanks!
  22. go to http://validator.w3.org/ and use the clean up with html tidy option?
  23. here you go <table cellspacing="0" cellpadding="0" border="1"> <tr> <td style="width:100px;"><div>a</div></td> <td style="width:100px;"><div>b</div></td> </tr> <tr> <td style="width:100px;"><div>a</div></td> <td style="width:100px;"><div>b</div></td> </tr> <tr> <td style="max-width:100px;overflow:hidden;"><div>abcdefghijklmnopqrstuvwxyz</div></td> <td style="width:100px;"><div>b</div></td> </tr> </table> that will work i had the right idea like i said my head was in a grog yesterday
  24. ok now im just really confused half the time it appears mid page and half the time its way down so you have to scroll. im just sitting hitting f5 and it keeps swiching. http://new.stangle.info/index.php on http://new.stangle.info/register.php a medium length page, its way down making a scroll bar show up in the middle of the page or its in the right spot
  25. long pages are good but short pages dont work now
×
×
  • 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.