Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Beginer Help. creating a loop for multiple html tables for each month
Maq replied to brooksie's topic in PHP Coding Help
You need to create something like this pseudo: query for dates... while dates... start table... query for other info WHERE date = $query['date_from_other_table']... rows, cols, info inside them... close while... close table... close while... -
You should either use the $_POST or $_GET method. $_GET goes through the URL, $_POST is through input field. What do you want to do?
-
-login fields are really big -signup for birthdate goes to 2010 I didn't go through everything but it looks pretty good. Couldn't find any major bugs, all features I used seem to be working, but like I said, didn't go through everything. Good job.
-
This isn't exactly what you're looking for but it should help: Autoselect check boxes
-
Get and post not working after dreamweaver changes
Maq replied to KMC1499's topic in Editor Help (PhpStorm, VS Code, etc)
echo “Equipment ID $i=”.$listvals[$i].” \n”; It thinks the '=' sign is part of the variable. Put a space or if you want it concatenated you need to use '.' -
-The top nav is a little big and in your face. -When you register if your input is too long it overwrites the "LDC" and looks weird. -The registration content runs off the black container. -If you input something invalid in the registration is doesn't re-populate your info. -Registration should redirect to the starting page or w/e you have instead of saying Gangsta Made. -Went to buy some drugs and never got them Haven't gone through the whole site but it seems pretty buggy. I think it's a cool idea, even though there are many games like this.
-
You need to use something like AJAX.
-
Get and post not working after dreamweaver changes
Maq replied to KMC1499's topic in Editor Help (PhpStorm, VS Code, etc)
I'm not sure. Obviously you can't have $my_letter = a; Looks like Dreamweaver changed your code around or something, but I'm not a DW expert. Maybe someone on here can help fix your problem. -
Can we see your code?
-
Get and post not working after dreamweaver changes
Maq replied to KMC1499's topic in Editor Help (PhpStorm, VS Code, etc)
What exactly happened? I only use dreamweaver to edit, not sure about their wizards and managers. Seems like it altered a lot of your code. Did you have a backup? -
That's awesome.
-
I think you can use the new DateTime class then: $date = new DateTime($your_date); print $date->format('F j, Y');
-
Taken from PHP.net // Assuming today is: March 10th, 2001, 5:16:18 pm $today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm $today = date("m.d.y"); // 03.10.01 $today = date("j, n, Y"); // 10, 3, 2001 $today = date("Ymd"); // 20010310 $today = date('h-i-s, j-m-y, it is w Day z '); // 05-16-17, 10-03-01, 1631 1618 6 Fripm01 $today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day. $today = date("D M j G:i:s T Y"); // Sat Mar 10 15:16:08 MST 2001 $today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:17 m is month $today = date("H:i:s"); // 17:16:17 ?> Does this help?
-
Ah OK, I just saw that.
-
TOPIC SOLVED, nevermind MadTechie, I guess you got it.
-
Yes, you have. The question is how to create the URL. Cause it may be 'index.php' and you would use a '?'. Or it may have 1 or more vars in the URL 'index.php?var1=abc' and you would need to use the '&'. The question is how to determine these situations...?
-
[SOLVED] More visible TOPIC SOLVED button
Maq replied to Maq's topic in PHPFreaks.com Website Feedback
I haven't been here that long but from what the description seems like the button has been in the same spot for quite a long time, so what's the difference of how old these threads are? Again, it was just a suggestion and obviously it's not favorable. -
All that you really need to use is their unique identifier whether it be their ID, name, email etc. because that's what you'll need to use to look up that person in the DB and pull out their information. Thorpe has an excellent example that uses basic concepts for you to use.
-
Get and post not working after dreamweaver changes
Maq replied to KMC1499's topic in Editor Help (PhpStorm, VS Code, etc)
Looks like you have some syntax errors not get and post. Change these lines echo("Variable before going into the function = " . $someNum); $results = square($someNum); echo(" Variable after going into the function = " . $someNum . " Results of function = " . $results); -
How to increase or decrease the lifetime of a session?
Maq replied to mukunthan's topic in PHP Coding Help
This is what matters, not the probability of how often the gc process starts. It wouldn't matter because the gc process wouldn't see the session as garbage until after the set number of seconds has passed, even if you set the probability to 1/1. -
His question is how does he know if it's: www.mysite.com/index?var1=abc OR www.mysite.com/index?var1=abc&var2=def So basically how does he know when to add ?var= or &var=.
-
How to increase or decrease the lifetime of a session?
Maq replied to mukunthan's topic in PHP Coding Help
ini_set("session.gc_maxlifetime", 60); -
What exactly do you mean? Are you asking how to use the $_GET method. In that case you just create a link with the variables attached on the end like:
-
You need to make the column a link or have a link next to it. So the when you click on it it changes the query to ASC and when you click on it again it changes to DESC. You can just pass it through the URL with $_GET method.
-
Sure, of course you can. You can either add it yourself or buy another 3rd party script that will add it in. There will be a lot of modification either way.