Questions tagged [php]
PHP is an open-source, multi-paradigm, dynamically-typed, and interpreted scripting language designed initially for server-side web development. Use this tag for questions about programming in the PHP language.
1,466,444
questions
0
votes
0
answers
3
views
Test test test test test test test test test
import { DOCUMENT } from '@angular/common';
@Injectable({
providedIn: 'root'
})
export class ScriptNonceService {
private renderer: Renderer2;
constructor(
private rendererFactory: RendererFactory2,
@...
-3
votes
1
answer
16
views
please give me instructions to solve the Question ? i run the project using php artisan server commant but it appears a connection problem [duplicate]
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (Connection: mysql, SQL: select * from sessions where id = sxxVXv6VTQl3sW2XaydEJPBITIpsmNKO898Pik2H limit 1)
i run ...
0
votes
0
answers
9
views
Issues with Custom Walker_Nav_Menu for Columns in WordPress Navigation Menus
I'm trying to create a custom navigation menu in WordPress that uses invisible columns as containers for second-level menu items. I'm using a custom class that extends Walker_Nav_Menu, but I'm having ...
-1
votes
0
answers
18
views
CODEIGNITER: I want to automatic select the <table>
In this my view diagram of sitting arangement.
VIEW:
<div class="card-body">
<label class="control-label">Seating ...
0
votes
0
answers
15
views
I am struggling to get prefill data while editing document in php
<?php
session_start();
include '../config.php';
// Check if user is logged in
if (!isset($_SESSION['id'])) {
echo ("<script LANGUAGE='JavaScript'>
window.alert('Please ...
-2
votes
0
answers
12
views
Extract first paragraph tag from the string [duplicate]
I have array of string with Headlines or without Headlines
$str = [
"Hotel Rest Inn is a traveler's delight. It has 18 rooms in the heart of Bangalore"
"<p>HeadLine : Near Race ...
0
votes
0
answers
7
views
Setting Different Maximum Quantities for B2B and B2C Customers in Magento2
Is there a way to set different maximum quantity limits for B2B and B2C customers in Magento? For example, can B2C customers have a maximum limit of 20 items, while B2B customers have a limit of 100 ...
0
votes
0
answers
9
views
How can i handle CollectionType with EntityType (multiple) inside
Let's say i have two entities, User and Magazine. At first, i had a ManyToMany between these two but then i needed an extra field to manage the quantity of Magazine per User so i created a ...
0
votes
0
answers
20
views
PHP in Wordpress doesn't loop through every row
I have the following snippet:
if ($listings->have_posts()) {
while ($listings->have_posts()) : $listings->the_post();
if (have_rows('ticket_group')) :
$...
0
votes
0
answers
6
views
How to send Mail with Dynamic Sender in Laravel 10
I am stuck here I want to send mail in Laravel 10 Mail Class with dynamic email address I have searched alot but the available solutions they are not using Laravel 10 Mail Class. I am using Hostinger ...
-1
votes
1
answer
19
views
How to output PDF string to a smaller portion of the page (or iframe)?
I'm using Spatie Browsershot to create PDF files. Sometimes I don't need to actually save the PDF but just display it in the browser.
I can use the following method to display the PDF in the entire ...
0
votes
0
answers
11
views
It looks like this app isn't available login successfull for either one set of users normal users or having faceboook business account
callback.php
<?php
require_once __DIR__ . '/facebook/src/Facebook/autoload.php';
session_start();
$fb = new Facebook\Facebook([
'app_id' => 'xxxxxxxxxx',
'app_secret' => 'xxxxxxxxxx',
...
0
votes
0
answers
16
views
Doctrine: Object of class X could not be converted to string
I am currently building a package for ConcreteCMS to give users an access to an invoice list.
I use this Doctrine entity to store invoices:
/**
* @Entity
* @Table(name="...
-3
votes
0
answers
20
views
i have a problem in in website how i can change it in dynamic [closed]
I have three categories products rings necklace and braslets I want to add it in website . I want to make website dynamic . gave me idea how I can add it in admin panel like I make one page for all ...
0
votes
0
answers
15
views
How do I handle 500 and 200 error on phalcon?
I was wondering, what's the best way to handle 500 and 200 error in Phalcon? I'd like to create a default error page for when an error occurs.
In my app/config/service.php:
use \Phalcon\Mvc\Dispatcher ...