im now switching to near pure mysql on my forum almost all the smaller things such as topics are stored in txt files. Threads everything else including users and passwords are stored in mysql tables.
my question is for the forum, what would be the best method and or structure for displaying this data by means of fetching array function taking the data from my mysql tables including topics/threads and individual post data, and putting it out onto the pages. loop data from the top? in php.ini i suppose i should increase the memory memory_get_usage it might get slower but there functions that can be useful. I do not know if i should load every single thing into memory possibly the best bet is to take it like so?
in order for this forum to be anyway like a forum i have to order it by ORDER BY id in desc order newest posts on top
displaying threads for a page
displaying posts in the thread page
similar looping idea, almost same concept of 0 or null page *10 start loop and end loop +10.
And oh yea, besides mysql injection any major vulnerabilities that might arise of which i should think about?
mysql is a snap compared to pure files. how about $_POST (exploits)??
my question is for the forum, what would be the best method and or structure for displaying this data by means of fetching array function taking the data from my mysql tables including topics/threads and individual post data, and putting it out onto the pages. loop data from the top? in php.ini i suppose i should increase the memory memory_get_usage it might get slower but there functions that can be useful. I do not know if i should load every single thing into memory possibly the best bet is to take it like so?
in order for this forum to be anyway like a forum i have to order it by ORDER BY id in desc order newest posts on top
Code:
initial page is null
$start=(getpgvalue)*10;
$end=$start+10;
for the fetching in mysql
how would i do the above with mysql
there are of course functions that could all rows in a table so i could divide by 10 for the number of pages..
displaying threads for a page
displaying posts in the thread page
similar looping idea, almost same concept of 0 or null page *10 start loop and end loop +10.
And oh yea, besides mysql injection any major vulnerabilities that might arise of which i should think about?
mysql is a snap compared to pure files. how about $_POST (exploits)??