include("config.php"); //db connection and directory variables
include("lang.php");
$pcards = $_GET['pcards'];
$maxnumber = $_GET['maxnumber'];
$count= 0;
$index = 0;
$cards = explode (":", $pcards);
while($count <= $maxnumber)
{
$query = "SELECT * FROM $table WHERE (card = '$cards[$count]')";
$result = @mysql_db_query($db, $query);
$r = mysql_fetch_array($result);
if(!$result)
{
$query_error = "Failed at the mysql_db_query.";
echo"$query_error";
exit();
}
else
{
$indice = 0;
$thecards[$count][$indice] = $r["title"];
$test2 = $r["card"];
//echo"$test2 <-------no array value test <--->cards count --> $cards[$count]
";
$test = $thecards[$count][$indice];
//echo"$test <-------test
";
$indice++;
$thecards[$count][$indice] = $r["description"];
$indice++;
$thecards[$count][$indice] = $r["thumb"];
$indice++;
$thecards[$count][$indice] = $r["limage"];
}
// $cards[$count] = $number;
// echo"$cards[$count]<---CARD $count <---COUNT
";
$count++;
$index = 0;
}
$count = 0;
$index = 0;
?>
echo"$dreampagetitle";?> |
|||
" target="_blank">
|
"> | |
"> | |
" target="_blank"> |
$$dreamimportancecard = $thecards[0][0]; echo"$dreamimportancecard";?>
$dreamimportancemeaning = $thecards[0][1]; echo"$dreamimportancemeaning";?> |
" valign="top"> | |
" target="_blank"> |
$dreamlessoncard = $thecards[1][0]; echo"$dreamlessoncard";?>
$dreamlessonmeaning = $thecards[1][1]; echo"$dreamlessonmeaning";?> |
" valign="top"> |
" target="_blank"> |
$dreamusecard = $thecards[2][0]; echo"$dreamusecard";?>
$dreamusemeaning = $thecards[2][1]; echo"$dreamusemeaning";?> |