Skip to content

Two or more SQL queries in PHP function

Learning a graph-building PHP script I met a situation when PHP function performs only first query. Original code ALL OK, everything works, I have a pie graph with correct data. But when I add one more query to update data before further processing this case the function performs only first query adding +1 to…

JS event listner on int-only CSS class

I have the following problem: I have the following code in PHP: So the class of is: details-control-1, details-control-2 and so on But it doesn’t work. If I use words-only for the details-control class, it works fine. The goal is to create a table and trigger a JS action when a row is clicked. Thank you…

My index.html PHP page will not load when my login code is present

I watched a tutorial to build out a registration / login page. The register.php page works fine and writes new users to my mysql database. The index.html page will not load at all for data entry as written (but doesn’t give me a specific error). I have checked it against the tutorial. I ran the code thr…

Laravel Carbon change date to specific data

How to change f.e. only month and day in existing date variable(object ?)? I’ve got date type fields in db: And then I want in blade view change according to special conditions. Above code changes the date to something like “1970-01-01”. The year could stay as it is stored in current variabl…