whenever i click next page, my search results disappear and my pagination disappear as well. I want them both to stay whenever i click the page numbers, for example when i click next page, the table …
Tag: php
I’m Trying to Create a search field
I am trying to create a search field in PHP and HTML. My code is not showing any error message, however it doesn’t echo anything. My search page comes up blank. Here is my PHP code: <?php …
Merge pdf files in PHP and keep weblinks inside
We have a project where we merge different pdfs to create a catalog. Right now it’s running on myokyawhtun/pdfmerger, which runs fine, but it does not keep links set in acrobat. We have tried different libraries we found (pure PHP, we cannot install or call applications from the command line via shell-e…
Fetch value from multiple drop down with same name row wise
I have a table like below- the code of this table in my view is as following-
Course Name
Class
Laravel API resource hide key
I have an API resource called FilmResource, I’ve appended a new attribute to the model called is_new and I’ve added this new attribute to the resource file, the issue is I have two endpoints that make …
Laravel Middleware Error – Call to a member function isBasic() on null
I want to check user type when they log in and apply function In my middleware, I have this code public function handle($request, Closure $next) { $user = Auth::user(); if ($user->isBasic(…
if php boolean is true run php script in background in html page
I have a html/php web page, if something runs as it should my boolean is set to true. If it is set to true i want to run a php script that downloads a file for the user. Currently i have it as a …
Dates select from Mysql to work with bootstrap datepicker
i’m trying to hightlight all dates in datepicker from mysql but is not working, i think the problem is with array or i don;t know, the thing is when i write in user_busy_days variable [‘2019-12-01’,’…
php redirecting to same page after login failed
I’m trying to redirect to the same page after login failed,but instead I get redirected to /login.php.Here is my code: Index.php:
Login</h1&…
Laravel: company validation using regex
I don’t have any idea about how to use regex. I want to validate my company field. For example: url.co url.com url.in Right now my PHP script takes any string but I want to validate it according …