Jump to content

Getting File name


swamp

Recommended Posts

Hey,

 

I'm querying my mysql database with this:

 

SELECT id, poster, subject, post, post_date, pagename FROM blog WHERE pagename='FILE NAME HERE'"

 

where it says FILE NAME HERE I want it to detect the page name its currently on (eg my-page-01.php) and then call the row on the database depending on what page its on.

 

Any help much appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/119626-getting-file-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.