Category : php

I have a problem when I loop the data, it will show 504 Gateway Time-out. Timesheets table : 15,000 records Employees Table: 400 records Manpower Table: 100, 000 records. If I get 3 tables in SQL just take 0.1ms. Any other solution for my case? Thanks All. <?php $timesheets = Timesheets::where(‘type’, ‘Overtime’) ->get(); foreach ($timesheets ..

Read more

I am facing the following error: Fatal error: Uncaught Error: Call to undefined function message() Fatal error: Uncaught Error: Call to undefined function message() in /storage/ssd1/726/17342726/public_html/process.php:214 Stack trace: #0 /storage/ssd1/726/17342726/public_html/process.php(14): doLogin() #1 {main} thrown in /storage/ssd1/726/17342726/public_html/process.php on line 214 Below is my process.php code on that function function doLogin() { $email = trim($_POST[‘USERNAME’]); $upass = ..

Read more

I want to be able to pass images from Javasctipt to PHP then upload them and store them in MySQL. <div class=”media”> <div class=”aspect-ratio”> <div class=”previewcon”> <div class=”preview” id=”preview1con”> <img id=”preview1″ src=”” alt=””> <i id=”remove1″ class=”fas fa-times”></i> </div> <div class=”preview” id=”preview4con”> <img id=”preview4″ src=”” alt=””> <i id=”remove4″ class=”fas fa-times”></i> </div> </div> <div class=”previewcon” id=”previewcon”> <div ..

Read more

I’m getting a Notice: Uninitialized string offset: 0 This is a mu-plugin that is supposed to show social sharing buttons and the only problem is happening with pinterest. Since it’s not connected to my own database, I don’t know why it’s returning that error. My full code: <?php // Source: https://wpvkp.com/add-social-media-sharing-buttons-to-wordpress-without-plugin/ // Function to handle ..

Read more