Skip to content
Advertisement

Tag: php

Delete a users data from SQL using PHP

Hi im trying to delete a users booking detials when the user clicks delete in my bookingbeforedeltion.php file but for some reason when I test my php file once I click delete it goes to my delete.php screen and says it failed to delete from database and has the error Undefined index: rn. Is my rn not defined? Sorry Im

pagination show an extra page

I am currently doing a paging system and I have an error that the “NEXT” button continues to work despite having reached the last page, when clicking this it takes me to an extra page …

How to use REPLACE with WhereRaw eloquent laravel?

I have a column in my database that saved with double quotation (“) now I want to replace it by space.I’m using REPLACE and whereRaw.but It dosent work. this is my code: actually using / for scaping (“).Any Idea? Answer I believe you found the answer in the comments another thing what I suggest is don’t append the value directly

Convert array to implode value using ci

I have been getting value array and convert implode value comma separate ? Model: Controller: Array value: View json print value: Result: I need this value: Answer When there is only one field in the SELECT, an implode does nothing. You need to collect the data and then return the imploded data.

PHP array into individual php string, from SQL data

Here is a PHP code, that can be used to count data from SQL. This code displays the data in a table, I want to convert these table values (or arrays) into individual php strings. How can I do that ? I tried many methods, main issue is my lack of proper knowledge in PHP. I hope someone will help

Advertisement