Hi,
I have the following code:
if (!ereg('^[a-z_]$', '$sec')) {
// failed url validation
echo "You are not allowed to access this page in that way";
} else {
$sec is a variable passed in the URL that I want to make sure is only lowercase letters or underscore, the above code fails...
Hello,
I'm not an expert in mySQL, hence being here!
I've a database 'news' that has several sections 'sec', I store records as 'published' and have a counter 'read_count' which is increased by 1 each time it is viewed.
I want to be able to list the top 6 stories as most read, but want also...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.