miz
02-07-2005, 01:18 PM
ok like its like that
i got table with id,name,info,info,and,more,info
heh
now this table will be bigger and bigger with the time
can be more then 70000 rows
can be on 5000
so i thought to make new dir
with ids
empty file that will be like 55214.txt
file size : 0bytes
then in php do
if (file_exsits("ids/55214.txt")
{
//query to get info from id 55214
//echo info
} else {
echo " Not Found";
}
way 2 :
$bla = selcet * from table where id=$id
if (!$bla) {
echo " Not Found";
} else {
//show info
}
which way will be faster ??
i got table with id,name,info,info,and,more,info
heh
now this table will be bigger and bigger with the time
can be more then 70000 rows
can be on 5000
so i thought to make new dir
with ids
empty file that will be like 55214.txt
file size : 0bytes
then in php do
if (file_exsits("ids/55214.txt")
{
//query to get info from id 55214
//echo info
} else {
echo " Not Found";
}
way 2 :
$bla = selcet * from table where id=$id
if (!$bla) {
echo " Not Found";
} else {
//show info
}
which way will be faster ??