Skip to content

Tag: html

Can’t insert data on my database from laravel

When I try to insert data into my database, Laravel does not insert the records, but it is strange because when I migrate the tables to be able to perform the database, Laravel creates them without any problem, I do not know what I can be doing wrong if the migration run but stored no Route: Controler: Templa…

Custom CSS not loading on WordPress

I am building a custom WordPress theme and am having issue with linking to my CSS. Using <?php get_template_part( ‘template-parts/template-header’ ) ?> at the top of all of my templates (such as my homepage, which lives at template-parts/template-homepage, I am grabbing the header I have bui…

Highlight cells according to mysql value

I have fetched mysql results as below..I need to do is, check each $row[“$date07”] value with a threshold and highlight the cell. Here is my try… As you can see I need thousands of if statements if I follow this way to achieve what I need(I need to check all 7 days and need to consider more …

How to handle validation of multiple hidden fields

I have created a form where in many cases some fields are not displayed until user select a certain option that will make the particular field displayed, this is controlled by HTML onchange Event Attribute with functions in script. To this point everything works fine. Problem: In the Request class I am implem…

If the variable contains text within the string | HTML

I currently use this html code {{ou.user_agent}} Which results in the build which results in the user agent. To identify an exact word I do this {{ou.user_agent == “Store” ? “Go” : “Nope”}} If the user agent contains Store exactly, it returns Go and if it does not, it retur…

Form doesn’t take me to action url when submitting

When I submit my form it doesn’t take me to the right url, it instead just stays on the same url and adds the params to it. Like this: /todo?message=themessage rather than what it should be as /todo/add In my /todo/add url, I have a php script that is assigned to that route, which just echos a string an…