Skip to content

Tag: php

Codeigniter Having undefined index

I need to access a table by referencing another table ID and by doing so I created first a foreach loop to retrieve the first table data then give its ID reference to the second table. I have done it in my other function but I don’t know in this function prompts me that it’s undefined index. Here …

Stripe Class ‘StripeCharge

I want to implement a Stripe payment form but I get a fatal error Class ‘StripeCharge. The class is there (see my folder tree), I tried : $charge = StripeCharge::create(array( $charge = Charge:…

Adding click events to Datatables

Here is my Jquery data tables to get the values from ajax and placing it. Here is the constructed table. I want to write click function to it. How can i do it ? I want to write click event to the role=”row” and get the value TMB030 on it. How can i do that ? I tried like this

How can I start php-fpm in a Docker container by default?

I have this Docker image – Basically, I want it so that php-fpm starts when the docker container starts. I have php-fpm working if I manually go into the container and turn it on with /usr/sbin/php-fpm. I tried it inside of my ansible file with this command (it didn’t work). I tried using the serv…

how to optimize this sql insertion php code?

I have mysql database and I want to insert about 40’000 rows into it from PHP code , but my code takes more than 15 minutes to insert the rows, is there any chances to optimize it? where is my problem(PHP code / database design) ? here are the details: – the row data are stored in a utf-8 txt

pancard structure validation in javascript and php also

i want to do pancard validation in javascript only. Its limited to india only. the structure of pancard in India is as follows.. for example : AAAAA9999A First five characters are letters (A-Z), next 4 numerics (0-9), last character letter (A-Z) Each deductee is uniquely identified by the PAN If the PAN does …

Yii : How to add datepicker in order to filter gridview

Here is my codes in order to show some relation tables data in the controller and it is view code I want to add a date picker to view and use it in order to filter GridView I am new in yii2 please advise me Answer first of all install any datepicker widget i.e 2amigos date picker in your index