yo
i downloaded a script and i wanna add a page to it.
so here's what the page will do >>
get id number sent >> look in the mysql db for that id >> pull all info on that row >> put that info in a array and display it on the page.
so yea to all you pro's and well just people that know more than me this may be easy to u but i dont know that much bout php so here what i've got so far (all from the php manual thingy) >>
mysql_connect($host, $user, $password);
mysql_select_db("$database");
$result = mysql_query("SELECT Inktitle, Inkdescription, Inkrating, Inkvotes, Inklocation, Inkurl, Inkdate, FROM searchidx WHERE id=$id");
while ($row = mysql_fetch_array ($result)){
echo "Inkdescription:" .row["Inkdescription"]."<br>\n";
echo "Inkdescription:" .$[0]."<br>\n";
}
mysql_free_result($result);
<<
so uhh WTF does mysql_free_result do?
is this right?
does it put all content in $row array?
is the WHERE right?
$id is sent from a link e.g. script.php?id=2
can someone make this a little english for me please
Thanks in advance
Vince
P.S. yea i know...I DONT KNOW SH*T 😛