Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ShugNiggurath

    PHP ereg syntax problem

    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...
  2. ShugNiggurath

    Using PHP mySQL to create 'most read' stories

    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...

Part and Inventory Search

Back
Top