I need some php or javascript script first to display a PDF file in a HTML modal (client browser) and then to print a PDF file from html modal (client browser)
I have the following select <select class="form-control" id="from-location" name="from-location"> <option value="1">Inventory 1</option&g
See the calc: var_dump((75.2 >= ((94 * 1.8) - 94))); // return false; var_dump((75.200000000000001 >= ((94 * 1.8) - 94))); // return false; var_dump((75.2
In my table named Follow, there is the information of those who are followed. For example, let's say my user id is 1: tableID | followerID | followedID ________
How to resolve this issues: Trying to access array offset on value of type int? PHP8 public function processPayment(Request $request) { $orders
There is a form on the website with "FTP username" and "FTP password" for administrators. How to safely add the FTP user by PHP? Because curre
I'm managing a big store that has a really big rotation of different products. We get new products, after a few days they sell out and then we may or may not re
i have two mysql connection and i want to migrate specific database with php artisan migrate --database=databasename and when i ran command php artisan migrate
First of all, my Nginx configuration server { listen 1443 ssl http2; root /usr/share/webapps/postfixadmin/public/; index index.php;
I'm adding a button via shortcode into my post on front-end. On click, this button should change the current post status to 'draft'. Changing to 'draft' seems t
I'm trying to convert a pdf file to image with imagick in php. The script works fine but the image created has a grey background like if the background of the p
I uploaded a website to a live server with this code class Model extends Database { public $errors = array(); public function __construct() {
I tried to import an Excel file in the database,but the dates are shown as 5 digit numbers 44605 representing 2/13/2022.What can I use to conv
I have this function private static function applayPrice($objProduct, Product $product, $applay_price, $applay_old_price) {} The problem is that someti
I am working with Ajax, as request is success but not getting proper json response. In Response its getting like this 0{.....} What is the solution to this? MY
this is the code where i send email. the file_get_contents(); i retrieve the content but in plain format text. the css style didnt read. <?php use PHPMaile
I want to verify email when users register. I am using codeigniter3. When I run on the localhost I do not receive any mail. I get this message " Unable to send
I am trying to attach a string on php variable this is my code if ($tipy = "2"){ $username = "dr_" + $username; } and output to b
I just started with PHP not too long ago and have done some small projects with just plain PHP + Ajax + html. I’m more comfortable with procedural code th
I know that this question has already been answered in other topics but for some reason it doesn't work for me and I don't understand why. I call a template wit