issue while deleting row in database by php

Hello I have a table in my database called files and I want to delete a row by its id but whenever I run the code I get the response “Successfully Deleted” but it does not delete the row. …

How to Show Data After Login in Laravel

After successfully login from auth, I wan to show the data from database. But I got an error like this. Undefined variable: barangs (View: C:xampp7htdocsexample-appresourcesviewsbarang.blade….

how can i upload image using react native expo image to my local server PHP / Database MySQL

I’m making a mobile application using expo client to allow user to upload image or take from a camera and then the image saves on my local server on PHP / Database MySQL. How do I do that thing if I’m …

Copy rows in MySQL table multiple times and adding additional column

I have created MySQL table in database. Table name is products and the columns are( prodict_id(pk) product_name and pack_size) as shown in the figure below. What I want to do is , copy all the rows …

Laravel – Delete record from database if not exists in given array

I am fetching all my GitHub repositories using Campbells GitHub package for Laravel. I made a command and a cronjob which runs every minute and it works perfectly fine. The only problem is that when a …

Adding HTML codes inside PHP

I’m trying to add a view button to my table but I’m getting a syntax error, unexpected href. Seems like I’m wrong with the formatting. Still trying to learn PHP but is it possible to add href to the …

Issues converting stdClass to array

I have converted one of my websites to use PDO database queries. All the queries are working perfectly except one and I have spent all day trying to solve this problem and nothing is working for me so …

NEWID function causing error for prepared statement in MYSQL

I am trying to create a forgot password system, so I am using the NEWID() function to create a random code to be sent to the user’s email. I am using prepared statements to prevent SQL injections, but …

Call to undefined method links()

I’m trying to display featured game in my home page but i’m getting the error : Call to undefined method IlluminateDatabaseEloquentBuilder::links() when i’m changing in the HomeController : From …

JS function not found when calling PHP function on server but works on local server

As stated in the title my code works in local but not on server. More precisely, when i call whatever PHP function it doesn’t find my JS function. To sum it up : The goal here is to generate an excel …