Hello, im trying to find out how i can select one specific row in my database to show just that line in php, Its hard to explain but ill show.
[php]<?php
$con = mysql_connect("######", “######”, “######”);
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}
mysql_select_db(“lanarp_com”, $con);
$result = mysql_query(“SELECT * FROM products”);
while($row = mysql_fetch_array($result))
{
echo $row[‘costumerid’] . " " . $row[’.$_COOKIE[ID_my_site];’];
echo “
”;
}
mysql_close($con);
?>[/php]
this function is for my website where ull have to login to the site and when u logg in you also create a cookie, i want that cookie to select a specific row in my database… is that possible?
as in the code over here, it will show “costumerid” from the database, thats simple, but i also want to select the specific row with the help of that cookie.
/thanks