How can use the same custom css code on multiple pages in wordpress right now i am using this custom css on this page id 1367 in wordpress and i would like to use these same css on this page id 1699 too do i need to add like this or any other method is available in wordpress Answer Can
Tag: php
How to check if submitted data to a database is unique with Laravel form validation?
I am new to Laravel and I have run into an issue where when I check if data submitted is unique to a database is unique I get this error: This is my code in Laravel: I thought the unique parameter checked if a value is unique or not. It technically does check for it but when I submit a
Flutter/MySQL: How to pass URLs from mysql database to PageView/ImageSlider Widget?
I would like to pass a dynamic number of image url’s from my mysql database to a PageView Widget as a simple ImageSlider. Problem: Several type errors like “the argument type ‘List(ImageList)’ can’t be assigned to the parameter type String.” OR “type List(dynamic) is …
How to get and send values from html to a PHP page?
I created a form for image uploading. This form also includes a tag to add information about the image being uploaded. I need the text from the tag to be sent over to a page “savetofile.php” whenever ‘Upload’ button is clicked. Currently the picture uploading works, the picture informa…
create counter for blog categories in laravel
I´m traying to create one counter for my blog´s categories. This should appear to the right name side of my category . i´m using my model with variable appends, that after i will use in my blade for show my result in one span. But i don´t know very well how i can use count in my Model. I´m doing
Insert two values into MariaDB table using a textarea in HTML – PHP
I’m trying to add some text from a TEXTAREA in HTML to my table in mariaDB using PHP in Linux. Basically the form has two “boxes”. One to identify the user and the second one to add a text. If the user have already added a text, will not be possible to add more text. I am struggling to add
split each HTML tag into new line using PHP
I’m going to split each HTML tag into a new line. This is my source: And I’m gonna have it like this: or like this: And this is what I’ve done: and this is the output with put each “>” in a separate line (array member). Answer Instead of using a regex and splitting your source…
php – word between space and tab (or: sort attendance report alphabetically)
I am trying to extract the last name of a attendance report for sorting it alphabetically by last name. The attendance report (should be an .cvs) looks like this: (Tab was extracted for the post, so here: I open it via fgetcsv and find the word between space and a tab: Output looks like this: Testme Left I do…
Identify Laravel Package using File Structure
Description: I’ve task to integrate some PHP MVC project in my Laravel Project whereas I’m Laravel Developer in which I’m getting error Not Defined Error. Therefore, I’m trying to understand this project. Hence, I’ve made this question to identify the framework. Below is my File …
how to convert $request format in laravel
I search around for a bit but found nothing that did exactly what I’m after nor anything that really aided me in achieving what I’d like I have data in this format: I’d like to convert it all to this format: i tried: but get no success Answer You got it the other way around. You need to loop…