Skip to content

Tag: php

PHP, simple banner pop up in else statement

I have a simple if/else for a php login of sorts: However, I want to make it so that within that else it shows a somewhat nice looking banner on the existing page, as now it just shows the text on a white blank page (as echo should be expected to do) What’s the most simple way to just stay

Multiple if/then arguments in PHP for HTML classes

I would like to have an if/then argument for 2 classes (from the css) for a menu item. One where the menu item is blue if it is NOT the active page, and one where the menu item is red if it IS the active page. I have figured out the active page portion, now I am trying to figure

Is there’s a way to shut down window with php?

I want to shut my window down using PHP, but I haven’t found any good resource. I wonder if there is a way to do that in PHP. Answer Yeah. But no. Please, just please don’t take this too seriously. PHP is a server side language. Which means it has no access to your browser itself. You should try u…

Input password show and hide

I hope I don’t bother you with a question 🙂 . I have little knowledge about writing code, so I encountered an error there are two inputs I added an eye icon with bootstrap when clicked, the password appears the first input works, but the second input does not show the password What do you think is the p…

Viewing Documents Stored Outside the Domain’s Folder [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I’m trying to fetch the files in a folder that it outside the site’s path and, wi…

In modal form get element value correct row

i have problem with getting info in my modal form. I have rows what shows information. Screen shot bellow Then i press button right im getting modal window. Screen shot bellow I want make then i press my button in right get what row info and put in input. My code in php and html MY MODAL FORM code My

Yii2, how to add a LIMIT on a leftjoin to get only 1 result back

I am trying to get all records from the product table, these records are unique but i use a leftjoin to add a second table with images of these products but when I do it will return some products more than once as some products have 1 or more images. How can I use a limit on the product_images table