Awesome. I'll have a look at the above solution and try and amend it to fit my needs. I'll get back to you and let you know how I get on.
Sincere thanks to all who have taken the time to look at this.
User Profile
Collapse
-
Ideally to save it right away. So that all the data in the database reflects what's showing on the users screen.Leave a comment:
-
Increment Buttons
Hi there,
I realise this may sound elementary but I'm left scratching my head.
I'm trying to create a page in php with several values displayed on the page and a button next to each value which will increment the value by 1 and then ultimately save the values to the database.
I've played around with the submit button and my variables but I can't get it to work. I realise it's a bit cheeky to ask for help... -
What, you mean without the DATE_FORMAT function embedded in the query? It definitely works like that.Leave a comment:
-
Tried it. Still not working. It's not even giving me the firstname & lastname column in my table which suggests to me that the query line is causing the script to bomb somehow.
I appreciate all your efforts on this by the way.Leave a comment:
-
I tried it but it's just not having any of it. The page doesn't crash but the table isn't displayed at all. I think it's something in the syntax of the query as I've tried commenting bits of the code out and that line appears to be the stumbling block.
Here's the code I'm trying...
...Code:#list all players #connect to mysql $conn=@mysql_connect( "host", "username", "password"
Leave a comment:
-
Thanks mate. That's fixed it.
I had tried using the DATE_FORMAT function and I thought I was getting pretty close at one stage but to no avail. If anyone can point out where I'm going wrong I'd be much obliged.
Heres what I'm trying to get working...
Code:$sql="SELECT playerid, firstname, lastname, DATE_FORMAT(DOB, '%d-%m-%Y') FROM player order by surname";
Leave a comment:
-
Date Formatting mysql->php
I'm having problems formatting a date retrieved from mysql database. When I retrieve the date it's in the format YYYY-MM-DD. I need to split the Day, Month and Year portions of the date up so that I can represent them in a drop down menu.
I've posted my source code below, such as it is. I need a function of some kind to allow me to manipulate the $row["DOB"].
...Code:#connect to mysql $conn = @mysql_connect(
No activity results to display
Show More
Leave a comment: