I have a SQL Server database about Customer information and CustomerPhone has a multiple values column which is C_Phone. This is my code: if (!empty($_GET[‘customer_id’])){ // ‘id’ input from the …
Tag: php
Accessing private function in included php file [closed]
I currently have two php class files and I’m working on accessing functions across them. Currently, in the secondClass.php file, I’m able to call a function in firstClass.php successfully and that …
Laravel – Error when calling my logout route
I did the installation of laravel as sent by the basic authentication guide with auth, my login works and returns me a token, but when I try to log out it returns me the following error: this error in my middlaware where it was for him to do the control with the token, but I think I’m doing something wr…
MySQL8 connection with php7.3 and Symfony 5 does not work
I have a connection problem with a mysql8 database, php7.3 and Symfony 5. The user and the password are correct ! The connection to MySQL8 database must be done from an SSH tunnel The SSH tunnel is working : MySQL access configuration: Doctrine configuration : I have the same problem with heidiSQL and on the …
Display pictures from a folder in the specific way – PHP
I am trying to create a dynamic gallery in php with specific order of pictures on the page, but I can’t find the function or piece of php code to do so. Conditions: The gallery must be dynamic, pictures will be coming from a folder via php, because when I’ll add/upload more pictures in the folder …
How make a many-to-many rest API in yii2
I’m trying to get a many-to-may relationship to work, but I can’t get it to work. I have a database with 3 tables: users, favorites & videos. The favorites table contains 2 foreign keys that point to the users table and the videos table. Currently I have the following: User Model: Video Model:…
display ajax information under input field
I tried to develop an ajax to display some information. My ajax works fine but it do not display the information under the input field. Do you have any idea to resolve that ? thank you. my ajax request called across the input field, I use to display information: example of response I can see on sa keywords: A…
How to Mange IF and Else In Forloop with Json empty Data
I am looking for if { “name”: “Morris Holmes”, “occupation”: “programmer”, “country”: “” } When country”: “” string is empty on that time don’t run function because is not good for SEO. empty <td></td> …
Convert Excel file to array while preseerving formatting when using PHPSpreadsheet
Whatever I do, my array does not keep cell value formatting when I convert data to array. How to convert formatting to HTML preferably? Answer Looks like converting spreadsheet to HTML file, and reading that through DOMDocument parser work for me for now.
Getting google calendar, “Service accounts cannot invite attendees without Domain-Wide Delegation of Authority.”
I can create events but when add attendees it returns this error i followed google guide and every thing is done but i can’t figure out what the problem My code I’m using google-api-php-client the error: GoogleServiceException: { “error”: { “errors”: [ { “domain”…