var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
display random links
I want to know of a script that I can use that will display random links that uses MYSQL and PHP.
For example...I would be able to add the links to a mysql database and have the appear randomly on a php page. By random I mean everytime I refresh the page it would have different links.
If anyone knows of a script like that please let me know...it will need to be one I can customize. Since I have a few other things I am going to add to it.
The code is relatively simple for that. The MySQL query would be:
Make sure to change 'link' to the column name and 'yourtable' to the table containing the links. All you have to do then is output the result whichever way you want.
SELECT link FROM yourtable ORDER BY rand() LIMIT 1;