Category "php"

Wordpress - User last login date shortcode not work

I have this shortcode, it should show the last login date to users. The problem I find is that all other users are viewing my last login date and not their date

PHP Form implode / explode

I am using the a db field merchant_sku_item in a form. the original value is separated by / in the db like this: 2*CC689/1*CC368-8/1*SW6228-AB I want to displa

Global php variable is always null

I have a bug in my application which I do not understand at all. I made a minimal example which reproduces the issue: <?php class MyClass { const ITEMS_PE

Have error Livewire encountered corrupt data

I'm using extends in Laravel Livewire. It can display, but when I want to add or change data, I got an error. Livewire encountered corrupt data when trying to

MySQL dynamically find available reservations

I have a requirement to create a room reservation system with dynamic booking slots (a reservation can start at any time and last anywhere from 15 minutes up to

laravel create not send data

Basically when i use keycodes::create($data); nothing happens and by nothing i mean nothing gets created Model: use HasFactory; protected $table = 'keycodes';

functions with button.click() are not executing the click part

I have 2 function as below: <script type="text/javascript"> sm=()=>{ document.getElementById('show').click() console

php throws exception "Call to undefined function oci_connect()"

Here is my configuration: Window Server 2016 build 14393 From phpinfo: PHP Version 8.1.5 Architecture X64 Server API CGI/FastCGI Loaded configuration file: D:

Illuminate\Contracts\Container\BindingResolutionException - Target class [CommandMakeCommand] does not exist

Using Laravel 8.75 and trying to upgrade to php 8.1 in composer.json to "php": "^8.1" and receive the error of Illuminate\Contracts\Container\BindingResolutionE

Disable or hide EasyAdmin crud search bar

I have developped an online learning website with EasyAdmin as backend. Everything works fine, but I'd like to hide or disable the search bar on top of the crud

Wordpress: give a post a taxonomy if the name is smaller then date

The custom post type has the name/title with date: yyyy-mm-dd-name. I would like to check every hour, if the date is "bigger/newer" then in the title. If yes, a

openssl_encrypt does not return anything

function encrypt($text,$key){ $method = 'AES-256-CBC'; $size = openssl_cipher_iv_length($method); $iv = substr($key, 0, $size); $openssl = open

cURL same server from a inside docker container

I saw a lot of similar problem but not exactly like mine... I have a classic architecture, A server with docker, a stack with Traefik to dispatch request, and f

Dynamic Tabs content wont display simple data

Hi everyone i dont know what i am doing wrong the content in the tabs are not displaying the links menu works fine Just i dont know why the content is not loadi

Error when attempting to run update.php following Wikibase install

I am attempting to install Wikibase using the documentation on a remote Ubuntu server. I have successfully installed everything up to this point that I can thin

CodeIgniter 4 Inner Join in Codeigniter

Just want to ask if how can I use the INNER JOIN function on CodeIgniter 4? I'm trying to convert the SQL statement below to CodeIgniter 4 but since I'm just ne

Laravel 9 - Passport custom api for Authorization

In my application, I am using Passport for Authentication. I have created a Password grant client for generating access tokens for our mobile and web app. Now I

How to use foreign keys migration with database migrations. (errno: 150 "Foreign key constraint is incorrectly formed")?

CodeIgniter 4 has a handy solution for migrations and seeders. Without the usage of foreign keys, everything is working perfectly. But when I use foreign keys I

get max value of non duplicated records

Is it possible this? I have the following table: Col1 Col2 col3 code1 US 9 code1 0 5 code2 US 4 code2 0 11 code3 0 11 and I'm trying to get the higher col3 va

Zip multiple arrays in PHP based on their identical keys and not their indices or their positions in array

I have two arrays: $a = ['one'=>1,'two'=> 2,'three'=> 3,'four'=> 4,'five'=> 5, 'six' => 6]; $b = ['one'=>'uno', 'three'=>'tres','two'=&g