errors in all but internet explorer
Hello all,
I've been working on something, and I'm baffled as to why I'm getting an error for Firefox, Chrome, etc.; but am not getting any errors in Explorer. The error is the following:
Notice: Undefined index: start on line 47
The code for this is:
<!-- this is the initial setup for breaking the records into pages --!>
<?php
$page_name="index.php?content=all_movie_grid";
$start=$_GET['start']; // this is line 47
if(strlen($start) > 0 and !is_numeric($start)){
echo "Data Error";
exit;
}
$eu = ($start - 0);
$limit = $set_cols * 10; // No of records to be shown per page.
$this1 = $eu + $limit;
$back = $eu - $limit;
$next = $eu + $limit;
/////////////// WE have to find out the number of records in our table. We will use this to break the pages///////
$query2=" SELECT * FROM movies
INNER JOIN family_rating ON movies.movie_star_rating=family_rating.star_id
INNER JOIN alias ON movies.alias=alias.alias_id
INNER JOIN parent_alert ON movies.parent_alert=parent_alert.alert_id
INNER JOIN rating ON movies.movie_rating=rating.rating_id
ORDER BY movies.movie_name ASC";
$result2=mysql_query($query2);
echo mysql_error();
$nume=mysql_num_rows($result2);
/////// The variable nume above will store the total number of records in the table////
?>
<!-- end the initial setup to split the records into pages -->
And later down the page I have:
<div align="center" class="paging">
<?php
// Let us display bottom links if sufficient records are there for paging
if($nume > $limit ){
/////////////// Start the bottom links with Prev and next link with page numbers /////////////////
echo "<table style=\"margin: 5px; padding: 5px\"><tr><td align='left' style=\"width: 150px\">";
//// if our variable $back is equal to 0 or more then only we will display the link to move back ////////
if($back >=0) {
print "<a href='$page_name&start=$back&series=$search'>Previous Page</a>";
}
//////////////// Let us display the page links at center. We will not display the current page as a link ///////////
echo "</td><td align=center>";
$i=0;
$l=1;
for($i=0;$i < $nume;$i=$i+$limit){
if($i <> $eu){
echo " <a href='$page_name&start=$i&series=$search'><font face='Verdana' size='2'>$l</font>|</a> ";
}
else { echo "<font face='Verdana' size='4' color=red>$l</font>|";} /// Current page is not displayed as link and given font color red
$l=$l+1;
}
echo "</td><td align='right' style=\"width: 150px\">";
///////////// If we are not in the last page then Next link will be displayed. Here we check that /////
if($this1 < $nume) {
print "<a href='$page_name&start=$next&series=$search' width='140'>Next Page</a>";}
echo "</td></tr></table>";
}
// end of if checking sufficient records are there to display bottom navigational link.
?>
</div>
Any help as to why I get the error in all browsers but IE would be appreciated. Thank you.
