Skip to content

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?…

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 …

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