I have a table that holds records of grades of student, these students are in a group. some have 5 members some have 4, 3 or 2. The page where grades can be edited returns all the names of the group selected with a textbox corresponding to each of them. this is the part of my code that returns the
Tag: html
Password in confirm box Javascript
I have a Delete button in my PHP page which deletes a record. But when I delete that button I do a confirm box with: Can I make it so when they confirm they have to fill in a password? So what I mean is something like this And then they have to fill in a password Thanks in advance.
Displaying BLOB image from Mysql database into dynamic div in html
I have a BLOB image that is stored when the user submits an advert form, they have the choice of uploading one image. The image is stored in the database with the other information. Every time my page loads it dynamically creates the advert divs and also fills in the matching information from my database into…
How to show PHP Duplicate Entry error message on current page
I am creating a signup form for a website I am developing. I am using PHP to insert the form into my database. I have the useremail set as a Unique Key in my database. When I type in an email that already exists in my database it brings me to a blank page with this error message: Duplicate entry
Insert a CSS file within a PHP class
I have a little problem, which I can’t figure out by myself. I created sort of a “webengine”, which I build out of several classes. The main-class, getting a “theme’s” internals is called “Logic”. This logic-class includes all the files, needed for a website. I …
Setting Cookie on click
I’m having an issue creating / setting a cookie on the click of a link, is there a proper way to do this? Either PHP or Javascript is fine. Obviously both JS and PHP wouldn’t exist in the same instance it was just to show what I have. Answer You can’t mix JavaScript and PHP. By the time your…
How to replace custom html tag with html code in php
This is my scenario: In a custom CMS developed in PHP, I need to parse HTML string searching some custom tags to replace them with some HTML code. Here is an example for clarifying: I need to find the custom tags and replace them with the template of the item, as a result: This would be very helpful, but I
Warning: mysql_query(): Access denied for user ‘admin’@’localhost’ (using password: NO) [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 6 years ago. Improve this question It seems as though my PHP is trying to log in to the MySQL database w…
Change background color of a cell when next value is different from the preceding one
I’ve been around for years on Stack but this is my first time posting. I’m working on a website (php + mysql) and the following problem is driving me absolutely nuts. I have a table with 2 columns: Size and Amount. The table is generated by a basic php script simply outputting values stored in the…
is not refreshing
I had a (very) simple login script which was working beautifully, and somehow, without much, if any, changes on the script page I have the following error: The Problem <meta http-equiv="refresh" …