Skip to content

how to get the responseText from echo in php

I’m trying to return a value from PHP to JavaScript through responseText. The idea is if mysqli_num_rows($rslt) != 0, responseText = 1, or if mysqli_num_rows($rslt)= 0, to do an insert and …

Create Checkout Session.php 404 not found

I have downloaded the above code from here https://stripe.com/docs/checkout/integration-builder and put the file in my Xampp folder under htdocs, so whenever I am running http://localhost/my-projects/stripe-payments-prebuilt/checkout.html so it is showing me the checkout the page but when I clicked on the che…

Excel file cannot be read by arrays in php

Sorry for my english) I have a problem! I read file with extension .csv but each line returns string, like this I can’t convert these strings to array. This is my code. This is my file. Thank you for your help))) Answer You ask no question actually… But the CSV is quoted properly, at least if the …

Detect common Password/PIN

I Made a PIN authentication on my website, and I don’t want my user using common PINs like 12345, 11111, 121212, etc. I tried this But I think that Will be too long for a simple function? How to simplify it? Answer Your problem is actually quite simple, you want, for example, to avoid pins that have mul…

best way database management in php

i started learn database mysql im confusing how to manage all tables in one page i’ve tried datatables but still not like what i want i dont know the keyword for searching in google all tables always …