$link = mysql_connect("$db_host", "$db_user", "$db_pass") or die ("Could not connect");
mysql_select_db ($db_name) or die ("Could not select database");
$query = "SELECT * from resim where san_id = '$artist'";
$result = mysql_query ($query) or die ("Feyld ".mysql_error());
$num_rows = mysql_num_rows($result);
$query1 = "SELECT * from sanatcilar where san_id = '$artist'";
$result1 = mysql_query ($query1) or die ("Feyld ".mysql_error());
$row1 = mysql_fetch_array($result1);
?>
echo "$num_rows works of artist are being exhibited in our site.The prices of these works are between $row1[4]. For the enlarged images please click on them.
";
?>
|
$xxx=0;
$yyy=0;
if ($num_rows > 0)
{
if ( $num_rows % 4 > 0 ) {
$html_rows = ceil ($num_rows / 4);
} else {
$html_rows = $num_rows / 4;
}
// echo "";
echo "";
$row_no = 0;
$rec_no = 0;
$current = 0;
$current_no = 0;
$records = array();
while ($line = mysql_fetch_array($result)) {
array_push ($records,$line[0]);
}
for ($row_no = 0;$row_no < $html_rows;$row_no++) {
echo "";
for ($this_rec_no = 0;$this_rec_no< 4;$this_rec_no++){
if ($current < $num_rows) {
echo " | ";
} else {
echo " | ";
}
$current++;
}
echo " ";
echo "";
for ($this_rec_no = 0;$this_rec_no< 4;$this_rec_no++){
if ($current_no < $num_rows) {
echo "| " . ++$current_no . " | ";
} else {
echo " | ";
}
}
echo " ";
}
} else {
echo "Aranan kritere uygun kayıt bulunamadı. ";
}
}
?>
PHP Warning: Module 'gd' already loaded in Unknown on line 0
xc_fcntl_create: open(C:\WINDOWS\TEMP\.xcache.0.0.18467.lock, O_RDWR|O_CREAT, 0666) failed:PHP Fatal error: XCache: can't create lock in Unknown on line 0
PHP Fatal error: XCache: failed init opcode cache in Unknown on line 0
| |