sstangle73 Posted June 16, 2011 Share Posted June 16, 2011 hey all, When running this page there is no output (and no errors) not sure what is happening. any help is appreciated <?php $bigquery = "SELECT * FROM `" . $table . "` WHERE `age_group` LIKE '" . $_GET[id] . "' AND `status` LIKE 'Accepted%' ORDER BY print_name ASC"; $bigresult=mysql_query($bigquery) or die(mysql_error()); while($bigarray=mysql_fetch_assoc($bigresult)){ $id = $bigarray['id']; $result = mysql_query("SELECT * FROM `" . $roster_table . "` WHERE `id` = '" . $id . "'"); $array = mysql_fetch_array($result); $team_name = $array['team_name']; $organization = $array['organization']; $team_color = $array['team_color']; $website = $array['website']; $coach1_name = $array['coach1_name']; $coach1_phone = $array['coach1_phone']; $coach1_email = $array['coach1_email']; $coach2_name = $array['coach2_name']; $coach2_phone = $array['coach2_phone']; $coach2_email = $array['coach2_email']; for($i=1; $i<=$roster_max; $i++){ ${"player" . $i . "_number"} = $array['player' . $i . '_number']; ${"player" . $i . "_name"} = $array['player' . $i . '_name']; ${"player" . $i . "_grade"} = $array['player' . $i . '_grade']; ${"player" . $i . "_phone"} = $array['player' . $i . '_phone']; ${"player" . $i . "_email"} = $array['player' . $i . '_email']; ${"player" . $i . "_parents"} = $array['player' . $i . '_parents']; } ?> <table width="850px"> <tr><td class="title" style="width:50%;"><big><b>Team Name:</b></big></td><td class="dark"><big><? echo $team_name; ?></big></td></tr> <tr><td class="title"><big><b>Organization:</b></big></td><td class="light"><big><? echo $organization; ?></big></td></tr> <tr><td class="title"><big><b>Team Color:</b></big></td><td class="dark"><big><? echo $team_color; ?></big></td></tr> <tr><td class="title"><big><b>Club or Team Website:</b></big></td><td class="dark"><big><? echo $website; ?></big></td></tr> <tr><td colspan="2"><hr></td></tr> </table> <table width="850px"> <tr><td class="title"><b>Coach's Name</b></td><td class="title"><b>Phone Number</b></td><td class="title"><b>Email Address</b></td></tr> <tr><td class="light"><? echo $coach1_name; ?></td><td class="light"><? echo $coach1_phone; ?></td><td class="light"><? echo $coach1_email; ?></td></tr> <tr><td class="dark"><? echo $coach2_name; ?></td><td class="dark"><? echo $coach2_phone; ?></td><td class="dark"><? echo $coach2_email; ?></td></tr> <tr><td colspan="3"><hr></td></tr> </table> <table width="850px"> <tr><td class="title"><b>#</b></td><td class="title"><b>Player's Name</b></td><td class="title"><b>Graduation<br>Year</b></td><td class="title"><b>Phone<br>Number</b></td><td class="title"><b>Email Address </b></td><td class="title"><b>Parents' Names</b></td></tr> <?php for($i=1; $i<=$roster_max; $i++){ if ($i%2==0){ echo "<tr><td class=\"light\">" . ${"player" . $i . "_number"} . "</td><td class=\"light\">" . ${"player" . $i . "_name"} . "</td><td class=\"light\">" . ${"player" . $i . "_grade"} . "</td><td class=\"light\">" . ${"player" . $i . "_phone"} . "</td><td class=\"light\">" . ${"player" . $i . "_email"} . "</td><td class=\"light\">" . ${"player" . $i . "_parents"} . "</td></tr>"; } else { echo "<tr><td class=\"dark\">" . ${"player" . $i . "_number"} . "</td><td class=\"dark\">" . ${"player" . $i . "_name"} . "</td><td class=\"dark\">" . ${"player" . $i . "_grade"} . "</td><td class=\"dark\">" . ${"player" . $i . "_phone"} . "</td><td class=\"dark\">" . ${"player" . $i . "_email"} . "</td><td class=\"dark\">" . ${"player" . $i . "_parents"} . "</td></tr>"; } } ?> </table> <?php echo "<br><br>"; //$mpdf->AddPage(); } ?> Note: When the line "//$mpdf->AddPage();" is uncommented, the script will run through the big array once before throwing the error to a call to an undefined function (because $mpdf is undefined ;P) Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/239499-page-doesnt-load/ Share on other sites More sharing options...
sstangle73 Posted June 16, 2011 Author Share Posted June 16, 2011 nevermind i just realized i had ob_end_clean(); at the end. Thanks everyone! Quote Link to comment https://forums.phpfreaks.com/topic/239499-page-doesnt-load/#findComment-1230292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.