The reason it says "yes" all the time is because you've stated no "else" from what I see, but I may be blind.
However, from my basic knowledge in PHP, I would assume that should work.
From what I can guess is it'd be something like this;
*Connect to you Database*
$maintenance = *Run a query to select the collum which is "is_maintenance"*
if $maintenance == 1
{
redirect thing or w.e
}
else
{
your page
}
Or something, idk
It's got major flaws, for example the annonymous face is cut off at the top, hence being made somewhere else and being copied in
Doesn't "fit" facebook either
I want to make a paypal donate button (Already made) but when they donate certain amounts, I want it to update in a mysql database
E.G
A user logs in to a UCP, accesses the "donate" page, puts in "£5" to donate and then donates such, gets a thanks page from paypal and gets redirected to the...
Hi, Devbest.
So, I have a laptop and a desktop both connected to the same router, one wireless (Laptop) one wired (Desktop). Normally it's the case that the wired connecting is faster, better etc...
But ya see, here's the fun part. I do a lot of downloading of games via Steam and well my...
Would you like to join a FUN non-trolling community? Would you like to be able to have fun. Ever been in LSPD and been trapped? NOT ANY MORE! With our new flare system you can set a flare off for a LSPD heli to find you!
We are now running v1.2A(lpha) testing. Any person who joins the server...
Okay, here's in simple terms
I want to make a page, which will display entries from the current day.
So if I book 2 jobs yesterday, and 2 jobs today - I only want this to show the jobs booked TODAY.
Did your 'time' thing, this is what happened;
Notice: There was an error.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`name` LIKE '%1234%' ORDER BY `name`' at line 1
SQL Was: `name` LIKE '%1234%' ORDER...
I'll have a look at the first
2nd:
Right so.
I want to make a unique ID for EACH job that's made, so like it starts at 1 and every job is +1, so 1, 2, ,3 etc..
How would I go about doing this.
Currently when i create a job the id is 'null', how do I make the number system thing?
They have a timestamp/time. I just need to know how to only recall those that are inputted on that day.
2)
I have a search tool, It searches 3 things for a search term you put in, these are 'Name' 'Ward' and 'Destination', if your search term comes back with results, It lists them.
I want to...
Ik spam spam spam... But here's what Iw ant to know;
MYSQL:
If I input say, 3 things into my form today, and on my 'List all inputs today', how would I do that? So like how would I put (in C#/Pawn way:
"if(date == curdate)
{
DISPLAY RESULTS LYK
}
else
{
No jobs booked today
}"
???
NEW:
I'm...
How do I fix this, I've been trying for a while - It's that only one because I changed it from 'ward' to 'from' and I still got the error (Screenshots show the 'from' error, not 'ward')
fromphptomysql.php;
$date = $_POST['date'];
$time = $_POST['time'];
$hospital = $_POST['hospital'];
$dob...