İlginiz için teşekkür ederim arkadaşlar sağolun. Ama dediklerinizi yaptım açamadım arkadaşlar . Benim linke tıkladığımda direk resime gidiyor.Ayrı bir sayfa da o resmi gösteriyor. //starts the members session session_name("members"); session_start();
include ("connect.php"); //includes the connect.php connection mysql_query("SET NAMES 'utf-8'"); mysql_query("SET CHARACTER SET utf-8'"); mysql_query("SET COLLATION_CONNECTION = 'utf-8'"); //selects user names from users table for the login sesion to start if user not found it will then bring up an error message $queryz = "SELECT * FROM users where username = '$HTTP_SESSION_VARS[login]'"; $resultz = mysql_query ($queryz) or die ("users not found"); while ($linez = mysql_fetch_array($resultz)) { $name = "$linez[name]"; }
//once user selects an item from the category by the id it shows the user the details that is listed below of the items in the columns $queryz = "SELECT * FROM category where id = '$_REQUEST[id]'"; $resultz = mysql_query ($queryz) or die ("no data found"); while ($linez = mysql_fetch_array($resultz)) { $category = "$linez[category]"; $products = "$linez[products]"; $gender = "$linez[gender]"; $spes2 = "$linez[spes2]"; $spes3 = "$linez[spes3]"; $spes4 = "$linez[spes4]"; $spes7 = "$linez[spes7]"; $spes6 = "$linez[spes6]"; $picture = "$linez[picture]"; $promotion = "$linez[promotion]"; $price = "$linez[price]"; } ?>