I have the following code: $query3 = “SELECT Office, COUNT(Office) As Tot_Part, (SELECT COUNT(Office) FROM trespondent WHERE completion_status= ‘Started’ OR completion_status = ‘Complete’) As …
How can I call a WordPress shortcode within a template?
There’s a plugin for the Contact us form. To activate the form, all you have to do is to place [CONTACT-US-FORM] in the page… My page is calling a page template. Is it possible to add the [CONTACT-US-FORM] shortcode in the PHP template? I tried it and it did not work. The WordPress page worked, bu…
With PHP, why does option selected not always work?
While I realize that this isn’t the most efficient bit of code, it will not work for August or September! I’m using PHP 5.4 and XHTML 1.0 Transitional. I’ve tested it in the lasted IE, Firefox and Google browsers. I’ve checked the code that is sent to the browsers and there isn’t…
Can I insert executable PHP code into Joomla custom HTML module?
if you open this Joomla website you can easy understand what I have to do: http://lnx.erusma.org As you can see at the bottom of the page there is a Custome HTML Joomla module named Get in touch This custom HTML module contains this simple HTML code that show an e-mail form: I have inserted this HTML code by …
How to set cron job url for codeigniter?
I am using Codeigniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in url. e.g. http://my-domain.com/…
Get WordPress Featured Image “alt”
I’m trying to get a page’s featured image alt and echo it as paragraph text but my code doesn’t seem to be working. I’m currently able to echo the image and it’s working perfectly. Here’s the code I’…
Regex to match a slug?
I’m having trouble creating a Regex to match URL slugs (basically, alphanumeric “words” separated by single dashes) this-is-an-example I’ve come up with this Regex: /[a-z0-9-]+$/ and while it …
Best practice multi language website
I’ve been struggling with this question for quite some months now, but I haven’t been in a situation that I needed to explore all possible options before. Right now, I feel like it’s time to get to know the possibilities and create my own personal preference to use in my upcoming projects. L…
PHP Type Hinting for a map (associative array) in NetBeans?
I’m trying to get advantage of NetBeans’ intelligent way of handling object types, so I’m hinting to every object’s type in comments. Problem is, I want to hint to an associative array of (string => …
Job exporting tables to file every 15 minutes and calling PHP script once done
I’ve been doing a lot of researching for a potential job where I will need to periodically (every 15 minutes) export some specific data from SAP and then import that data into a mySQL database on a …