{$category->id|escape:’htmlall’:’UTF-8′} this smarty code is for get id number on category.tpl we have lot of category id’s example 2,6,8,10 etc etc and in my folder lots of files names example 2minimum.txt, 6minimum.txt, 8minimum.txt, 10minimum.txt etc etc i want to use include file when current category id page with category id number txt file. {include file=’folder/2minimum.txt’} <=- this will work perfect
Tag: php
WordPress JavaScript
I’m trying to achieve a custom option inside the “Publish Metabox” in WordPress admin custom post. And I want to know is there any native way to do expand/collapse divs (Check the below screenshot). I wonder how WordPress itself achieves it like the below screenshot? (Maybe match the IDs like bootstrap JS libraries do ?). Answer And I want to
How to bulk insert to database using foreach insert query in mysql
I have an HTML form which I can duplicate to help add multiple rows at a time. This code works but I’m running into a problem that I can’t quite fix. The code is supposed to add a row for each data inserted into the database. The problem is chat it is repeating the same row. This is not a
How to change the me when receiving email on contact us
I’ve created an contact us form using PHP Mailer, however the problem is when I received the email the name before you open it is me and I can’t figured out how to fix it. Also I appreciate it if someone explain to me what is the different between Username and the add Address. Thank you in advance. Here is
Insert Only One Record In MYSQL database using php
i am working on a project where i want to insert only one record in a specific time. For Example: in the project client rate a contractor only once.(when the construction is in working) once he rated he cannot rate second time whatsoever. I checked online but didn’t find what i am looking for. Now I have 2 Ideas. 1-
Laravel edit page does not call CSS and JS when on a server
I made an edit page for my application which is accessible via the index. I have a master.blade.php file that contains all the references for scripting and the CSS links. and every page calls this master page to make use of the Nav bar, heading and the CSS/JS. The edit page does not seem to call this and on the
Show a preview picture using JavaScript before uploading files
I have a little script for uploading images with PHP and showing a preview picture before click “upload”. It uses an input “multiple” for upload multiple files… So done, it works …
Add Facebook Pixel Purchase Event Code to WooCommerce purchase completion page
I need to add the following to the purchase completion page in WooCommerce: Copy the event code snippet. You can add parameters to send additional on-page data. fbq(‘track’, ‘Purchase’); I tried adding the following code to the child theme functions.php file: Fatal error. I’m sure I’m messing something up but I’m a little lost. I tried quite a bit of
Is it possible after making an action or in my case creating an event in calender then the page automatically scrolls down using JavaScript?
How to scroll down after making an event in calnder (code below), then page scrolls down automatically ? to end of the page or can be even adjust it ? calender.php add-event.php where i add the events : So after adding an event i would be scrolled down automatically, reaason why there is an form to be to be filled
Adding POST parameters after form submit
I have this form: And I’d like to add a few json arrays to POST in validateForm() after validation, so that when validateForm() returns true, the updated POST will be sent to course_submit.php. What’s the best wya to go about this? Thanks! Answer Have <input type=”hidden” …> elements inside the form. Assign the values to those elements.