We have 4 Offices with many assigned ZIP Codes: 21079, 22085,…. = Hamburg 10115, 10178,…. = Berlin 60306, 60312,…. = Frankfurt …..,……,…. = Munich everything else = Head Office Is it possible to read out the ZIP Code Input from the Form and send the Mail to the assigne…
CodeIgniter 4 Route url not found “The requested URL was not found on this server.” deployment on Heroku
Greetings I have a problem with my application in CodeIgniter 4, recently I moved all my websites to Heroku and for this website what is built in CodeIgniter 4 https://myconfessio.com/ only the index/home page look right but when I try to go to another page or do something else I get the error Not Found The r…
How to read input in Google Kickstart (PHP)
How can I read following stdin for Google Kickstart oder Jam code etc.: So the 4 in the first line has to be in a var (e.g. $a); Then in every line after that: the first param goes into an Array of $b[] e.g. And the same with the second param. In $c[] e.g. So the result should be: lang:
Describe php object
I want to create a function that will do this: check the object and if the property 1 is 001 then print John else if the property 2 is 002 the print Jenny but I dont know how to read the property 1 [001] and describe it as a variable. The result that I cURL from a file: Answer Check
Codeigniter loop to chunk query only ever gets the first chunk of rows?
I’m trying to get a large amount of data by grabbing it in chunks from the database and writing it to CSV. For some reason the code below is only writing the first chunk (2000 rows) to CSV. I have my $chunk and $limit variables writing to a text file, and those are going through the loop and writing out
Auto assign a shop manager to a new WooCommerce order based on variable increment
I’m trying to assign every new order to a list of shop managers. What I need is like a queue, so every time a new order is created assign to the next shop manager in the queue. This is the code I have: The problem I’m dealing with now is that the $i variable can’t be stored even though I
Using count_all_results or get_compiled_select and $this->db->get(‘table’) lists table twice in query?
How do I use get_compiled_select or count_all_results before running the query without getting the table name added twice? When I use $this->db->get(‘tblName’) after either of those, I get the error: If I don’t use a table name in count_all_results or $this->db->get(), then I get…
Few, complex OR many, simple MySQL queries?
Im working on a onlineshop with php. I work with the mvc model and I divide each small part of my application in: model view controller and service ( service is there for the query ). So for example I would have a Item cart which is divided in discription and price… For each of them I would have a
How to Implemented Knutt Morris Pratt Algorithm in Laravel?
i have trouble understanding this implementation KMP algorithm in laravel is there a way to implemented KMP Algorithm into laravel app based? i want to convert this script from native into framework script i seem cant find anything in google about Knutt Morris Pratt implemented in laravel based i need to use …
How get first two only word from string and replace whitespace by underscore (_)
here is the case, I had a string variable contains a fullname with title. I wanna get the name only, without the coma and the title. Then I replace the white space result with underscore (_). what I’ve tried : How to get the result like : john_doe from the variable $name ? Answer You could use preg_repl…