Questions tagged [php]

PHP is a widely used, open source, general-purpose, multi-paradigm, dynamically typed and interpreted scripting language originally designed for server-side web development. Use this tag for questions about programming in the PHP language.

1,439,791 questions
0votes
0answers
2views

Is there anyway to exclude website logo from 'og:image'?

I am looking for a way to exclude website logo image from og:image. Because, When I share a link on Facebook, it preview the correct thumbnail image of the link but shows logo image when link is ...
0votes
1answer
12views

sql (errno 150 "Foreign key constraint is incorrectly formed")

public function up() { Schema::create('reviews', function (Blueprint $table) { $table->id(); $table->integer('product_id')->unsigned()->...
0votes
0answers
7views

Newly created view files using Gii tool with Yii2.0.45 and php 7.4.29 not loading

I have a challenge accessing my newly created CRUD files-the views and this has occurred after i upgraded the Yii2.0.14 to Yii2.0.45. all the new files produces an error of “Not Found (#404)” with or ...
-2votes
0answers
9views

Searching phpMyAdmin DB alphanumeric & hyphens [duplicate]

I am a newbie here, so I hope my question makes sense. I Would be grateful for any help on the following. I'm searching my db with the following code. However will not return alphanumeric, and with ...
0votes
0answers
9views

Laravel: dynamic routes with FormRequest

I have a system that might have a lot of controllers in the future. What I wanted to achieve (and achieved) is to make some form of dynamic routes, in order not to flood routes/web.php file with tons ...
0votes
0answers
8views

php form post updates database and refreshes page but does not update data on the page after refresh

I can't seem to find a working solution in stackoverflow. I wish to update the form values with the updated data that is submitted in the form post. The database updates but after the refresh, the ...
0votes
0answers
11views

wp-env not working after the install wp-cli

Hi I am new to WordPress, I am using MacBook Previously wp-env run CLI command was working after the installation of WP-CLI is the command-line interface for WordPress. my all commands not working. ...
0votes
3answers
42views

form doesnt get submitted after disabling button after submit

Hello there i want my button disabled after the form submitted. Disabling the button works but it doesnt execute the php code. I tried different scrips that are posted on the internet but they all do ...
0votes
0answers
16views

Symfony Doctrine ORM - Column name does not exist when running migration

I am working on the Doctrine ORM (2.4.8, I know, it's old I cannot do anything about it right now) part of the code (Symfony 3 again, I'm aware it's old). I need many-to-many relation here because ...
-1votes
0answers
15views

How to query the input value with forwardslash in php mysql query

I need to query the table which has field value with forward slash ex -> nz/shop in php. I tried the below code it doesnt worked "SELECT * from profile where url ='nz/shop'"; I want to ...
0votes
0answers
14views

PHP use statements case not registering as an error

I have a PHP application and recently made a change and added a use statement but used the wrong case in the name. It did not show up as an error on my machine and when I pulled the change to ...
  • 715
0votes
0answers
10views

How to pass data from a crob job to a service provider in Laravel

I have a service provider where I decide what type of email configuration I have to use. The method that I used was to send the type of email inside the request as an object. But there is a problem ...
-1votes
0answers
16views

How to make all others records false when a single records true? with php and sql [closed]

I want to make a table when user select a column then the selected column is active so i thought to make it i need boolean. any suggestions?
0votes
0answers
15views

how to hide website url id using .htaccess?

i used this code in htaccess '''RewriteRule ^product/([^/.]+)?$ /product-featured?p_id=$1 [L]''' my website url is https://www.meromachine.com/product-featured?p_id=128&title=1%20kva-%207%20kva%...
0votes
0answers
21views

Laravel has_many relationships issue

i have next issue: I have two tables: pages | id | title | content | description | image | status | noindex | viewed | author | template_id | created_at | updated_at | page_relations | id | ...

153050per page