include("config.php"); //db connection and directory variables
include("lang.php");
$pcards = $_GET["pcards"];
$maxnumber = $_GET["maxnumber"];
$count= 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;
?>
"> | |
"> | |
" target="_blank">" src="" width="" height="" >
|
$selfcard = $thecards[0][0]; echo"$selfcard";?>
$selfmeaning = $thecards[0][1]; echo"$selfmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$ambitioncard = $thecards[1][0]; echo"$ambitioncard";?>
$ambitionmeaning = $thecards[1][1]; echo"$ambitionmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$idealcard = $thecards[2][0]; echo"$idealcard";?>
$idealmeaning = $thecards[2][1]; echo"$idealmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$pathcard = $thecards[3][0]; echo"$pathcard";?>
$pathmeaning = $thecards[3][1]; echo"$pathmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$addictcard = $thecards[4][0]; echo"$addictcard";?>
$addictmeaning = $thecards[4][1]; echo"$addictmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$strengthcard = $thecards[5][0]; echo"$strengthcard";?>
$strengthmeaning = $thecards[5][1]; echo"$strengthmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$faultcard = $thecards[6][0]; echo"$faultcard";?>
$faultmeaning = $thecards[6][1]; echo"$faultmeaning";?> |
" valign="top"> | |
" target="_blank">" src="" width="" height="" >
|
$selfcard = $thecards[7][0]; echo"$selfcard";?>
$selfmeaning = $thecards[7][1]; echo"$selfmeaning";?> |
"> | |
" target="_blank">" src="" width="" height="" >
|
$purposecard = $thecards[8][0]; echo"$purposecard";?>
$purposemeaning = $thecards[8][1]; echo"$purposemeaning";?> |