I want to get all text between [tag] and [/tag] including the tags. So this sentence. The cat said [tag]hi to dog[/hi] at the park. Using this function. function get_string_between($string, $start,…
Tag: php
why is composer not working centos symfony4
my English is very bad, I have a problem at install project symfony4.4 in server centos7 , with php7.3 , not php7.4 in windows is OK with php7.3 i run the command line /opt/plesk/php/7.3/bin/php /…
Laravel 5.8, CRUD when editing image didn’t show up (blade)?
I try to create edit blade to get old value from database. the title successfully appears, but the image and body (textarea) didn’t appears, here is some code of my edit.blade.php <form action="{{…
Data type of ‘password’ field for manual input in phpmyadmin for Laravel application?
In my Laravel application I have two type of Users. One is ‘Admin’ and another is ‘Users’. For Admin I want to input an ‘username’ and ‘password’ manually to the database. So what’s the data type of …
Pull the headings and display it in a div in a list format
I have a dynamic container .product_section and I need to display the headings inside to div.toc in a UL list format. Hoping to have a script that checks every .product_section and creates a list …
Hyperlinks is not working right for search result titles
I am trying to show search results from two tables. I have used union to put them together. Right now they work, when I search for something and matches, it shows up from both of the tables but I am …
Sorting of columns by joining two tables in Laravel
I have two tables books and publishers. publisher_id is primary key in publishers table and foreign key in books table. In index.blade.php of books, I want to create link for sorting of columns of …
Displaying table data in modal with PHP and JavaScript
I’m still somewhat new to PHP and JavaScript. I’m working on a web application that involves me displaying some data in a table using PHP and MySQL. I would like to be able to click on a row of the …
How to include file marked in string in PHP?
I have a string, where user can add special mark, for example [include=example_file] and I would like to include “example_file.php” to the place where the mark is. User’s text can be like: Lorem …
JS files doesn’t work correctly in wordpress
As I’ve mentioned in the title, I’m having some problems with my js files. I’ve tested the scripts in the HTML template and works fine, but when I put them into the functions.php file there are some …