I made a 2 dimensional array which checks if 3 of the same values are equal to each other. My problem is that when the code detects 3 in a row it changes values, but it doesn’t update to the original array ($aww_ar). Is there a way to do this? Code: Answer Ive worked it out a bit with the
Tag: php
how to show image from php to another
I want to show all images from database in interface the page index.php
&…
Pulling data into a select option in laravel
I am trying to pull data from a different table into a select tag where the user can choose which program a certain course belongs to. I am getting an error of syntax error, unexpected ‘}’, expecting ‘…
PHP: Json Get individual data
I am trying to get all Employee Name from my JSON Data. This is my JSON Data [ { “0” : “65” , “id” : “65” , “1” : “etertet” , “employee_name” : “etertet” …
How to make Ajax POST on PHP MVC using friendly urls?
I’m trying my first PHP MVC project from scratch. Everything is working fine… everything but ajax calls. When I try to POST I get a 404 error, but ONLY using AJAX; I’ve made the same calls using …
Calling specific Value in PHP Array
sorry for asking , if someone already asked . Here my question : I have this function : function view_jurusan($uid){ $sql=”select jurusan_detil.jurusan_tarif from jurusan …
CodeIgniter AJAX JSON validator with form validation
I am trying to make AJAX form validation work in CodeIgniter. If you have the same title don’t add The data from the form always reports as successful, even if the result is negative. Is there a …
how do i make a event listener for a button that is in a forwach loop
I have a for each loop where it loops through a table and the table has an id field which gets assigned to the button’s id. I need to see which button gets clicked (I need to get the value of the id). …
PHP AJAX HTML: changing unique table data in foreach loop
I’m new to PHP and Ajax. I am trying to create a table of object data where I can select the displayed data based on a … form. I have a PHTML template which looks like …
Convert Carbon date to html date time format
I have this format comes from Carbon // Y-m-d H:i $datetime = 2019-12-10 14:00; Now i want to convert this date time format to use it in datatime-local input. <input type="datetime-local" …