24-12-2009, 16:58
Wywala błąd bo w niepoprawny sposób używasz print_r oraz mysql_error(). Zobacz kod poniżej.
Kod PHP:
<?php
include("config.php");
$info_query = mysql_query("SELECT * FROM ".$prefix."ProFolio_info ORDER BY id DESC LIMIT 0,1") or die (mysql_error());
print_r($info_query) // tu
if(mysql_num_rows($info_query) > 0){
$red = "Location: index.php";
header($red);
die("Redirecting to ProFolio Index Page...");