Is there an easy way to $_GET multiple values from the url:
?type=forforum&no=0&source0=tr&btitle0=Matthew&no=1&source1=kjv&btitle1=Matthew&checkresult0=1&checkresult1=23195
The reason I ask is because I want to add more to this later on such as:
?type=forforum&no=0&source0=tr&btitle0=Matthew&no=1&source1=kjv&btitle1=Matthew&checkresult0=1&checkresult1=23195&no=2&source2=kjv&btitle2=Matthew&checkresult2=23195&no=3...&no=4...
This is how it’s interpreted so far:
$bk=isset($_GET["book".$no]) ? $_GET["book".$no] : "";
$ch=isset($_GET["chapter".$no]) ? $_GET["chapter".$no] : "";
$vs=isset($_GET["verse".$no]) ? $_GET["verse".$no] : "";
$source=isset($_GET["source".$no]) ? $_GET["source".$no] : "";
$sourceAbb=Array("kjv", "mt", "mtnv", "tr");
$SourceName=Array("King James", "Masoretic Text", "Masoretic No Vowels", "Textus Receptus");
$SourceTable=Array($dbTable3, $dbTable7, $dbTable9, $dbTable8);
for($i=0; $i<count($SourceTable); $i++){
if($source==$sourceAbb[$i]){
$sql = "SELECT * FROM ".$SourceTable[$i]." WHERE book = '".$bk."' AND chapter= '".$ch."'";
if($vs != 'all'){
$sql .= " AND verse= '".$vs."'";
}
$sql .= " ORDER BY id ASC";
//echo $sql;
}
}