Big Pb with PHP & MySQL
| From: | Salim Meethoo | Date: | Thu, 14 Dec 2000 10:37:13 +0000 |
| Subject: | Big Pb with PHP & MySQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-5238@lists.php.net to get a copy of this message | ||
hello there!!!
i'm in big problem, i need to make a search in my database an indexed fields
which bear the same name as my image . i've look on the net but i only find
to make a search in a file only . here is the code i found, i tried to
readjust it but alas it does'nt work on a database. here is the code i found
:
print("<TD ALIGN=\"left\">");
if (is_writeable($mycomment=file($info_dir."/".$titre.".txt"))){
if
(file_exists("$info_dir"."/"."$titre".".txt"))
{
$mycomment=file("$info_dir"."/"."$titre".".txt");
for($index = 0; $index < count($mycomment); $index++)
{
print($mycomment[$index]);
}
}
else
{
print("$nocomment");
}
can someone help me please!!!!!
i'm in big PB
Thank You
Salim