Skip to content

Tag: php

Using stacks in Laravel 8

I’m building a site using Laravel 8 and Jetstream. Jetstream is opinionated about the javascript / css framework, which is great, but I’m needing to add an external javascript library to one of my components, and I don’t see anywhere to add them in the default app layout. So I added a stack …

Insert a php string as multiple rows on MySQL table

I have a table with more than 750 rows of data that I paste on a textarea and get as a single string variable, then I pass the data as just one string thru an ajax and I want to insert it on my database in just one INSER INTO line Is there a way to make this work, I

How to combine two counts using Laravel

Using Laravel 8 for a restful API. A table in the database has following fields report_date , supervisor_id and supervisor_note I want to retrieve a result that counts the number of reports on any given day date and also counts all of the null values in supervisor_notes field. I am using the following Laravel…

Array inside arrays of arrays

I need help, I can’t assign the single values of the array inside the array of the array to a variable. I could assign the values of the second dimension array to single variables like this: But how can I use a second loop to count and extract the single values of the products?I have tried with a second…

Uploaded image is not returned to PHP

I am trying to make a form for editing a product but if I upload a image the image can not be found by my PHP code it throws this error: Notice: Undefined index: image in C:xampphtdocspagesshopmanageradminproducteditor.php on line 10 Notice: Undefined index: image in C:xampphtdocspagesshopmanageradminproducte…