Skip to content
Advertisement

Tag: html

How to direct the uploaded image to the file i want

i’m asking user to input the image as; Then i am storing that data into my database with the following; And then i am listing the files and the image i get from the user in the function below; However when user uploads the image,i want it to upload the image into my C:xampphtdocsea file. Tried this Storing images in

How can i print the data in the array of json file in php

i have a json file which i have decoded.Now i am trying to print the each element in the array which are “id,bin,tur,bank_name” etc. How can i reach the for example second element of the array and print it as a table. and my output is looking like this; Array ( Answer you can simply iterate on the array and

avoid same numbers and zero in array

I have a form with that table: jsfiddle In this form i need to enable to edit the number fields. After submit i collect the data and write to mysql. Before mysql insert i want to check that the $number array does not contain the same numbers and zero (like: 0,1,1,101,150). If yes give an error to the user that

Laravel route setting incorret and search function issues

This function search user from MySQL. Can anyone knows which part I did wrong ?, searchUser function is not triggered. admin view Answer You can remove type=”button” from below line or change type=”submit” If still that not works for you then you should defile action=”{{ route(‘YOUR ROUTE NAME’) }}” in tag

clang-format equivalent for PHP & HTML

From what I read clang-format is for c/c++/obj-c. Which tool like clang-format would you recommend to automatically format/reformat PHP/HTML code in a consistent way? And why? The use case would be to check code formatting in CI (continuous integration) when submitted through a ‘pull request’ for example. If there is no such tool, how can we do this with clang-format?

Change image with and js

I have a small slider that switches the preview image to the main image. It works fine now blade.php js But I still have a picture mobile_image, and I want the mobile_image to change instead of main_image at the maximum size of 576px, for this I use <picture> I change my code to like this But my slider just stops

mPDF how to leave all content on a single page

I want to export an HTML to pdf using mPDF, but I want everything to be on a single page, without any page breaks. How can I do that? Answer “mPDF has limited scope to control when automatic page-breaks occur, and does not have ‘widows’ or ‘orphans’ protection.” https://mpdf.github.io/paging/page-breaks.html

HTML – input field jumps out of html table

I have a ‘dynamic’ table where someone can change info about a person. When clicking on ‘update’ the cell should change to an input field. This works, but somehow the input field jumps out of the table and sits above it. This is part of the function that shows the table: This is the page where the function gets called

Hide block in if condition

I’m a beginner I want to make a condition under which we either hide the block or leave it, I did it and everything works But I am planning to add a few more blocks and everything will look like this, there will be a lot of code copying Can I do it somehow shorter so as not to copy

Advertisement