Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Open the desired file in an editor (VIM, notepadd++, gedit, etc..) and edit it... Are you testing locally?
-
Install PHP on XP on my computer...
Maq replied to rsammy's topic in PHP Installation and Configuration
I'd recommend WAMP or look at the manual: http://us.php.net/install.windows -
We can't really help. You may have to learn PHP. Dreamweaver does provide a WYSIWYG but I'd advise against it, as it produces horrendous code. I don't think you can even use it with code that's been made without it, but I'm not sure, I've never used Dreamweaver, and probably never will. If you have specific problems, you can post them here and we can help.
-
What I noticed immediately is that you have form1 for a method, but you're using POST. Change that, in the example you were using they used name="form1" method="POST", you mixed them up.
-
hmm. im sure some programming language i use uses 2 equal signs! I'm sure one does... :-\
-
Then echo under each if statement and see what doesn't output.
-
Use 1 equal sign not 2.
-
Have you echoed out the post variables to make sure they all contain expected values? print_r($_POST);
-
It's good practice.
-
seany123, Try this code, although I'm not sure how you know where the VALUE 5 etc.. comes from. </pre> <form action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>" method="POST"> Select Value: Level Money Bank Points Strength Defense Speed Total Select Value: All London New york Birmingham Atlanta washington Tokyo Moscow Berlin Madrid Sydney Chicargo Singapore Mexico city Phoenix Amsterdam Oslo Boston Hong Kong Las Vegas Austin Miami Dublin Oakland Milan Istanbul Toronto Rome </form> <br><br>if(isset($_POST['submit'])) {<br> echo $_POST['cityid'] . " => " . $_POST['value'];<br>}<br>?><b
-
You have 3 forms, when you only need 1. And you don't tell any of them where to submit. Read this.
-
Yes, that looks like it should work, if your include directory is in the same directory as the file calling it. If not you would have to give it the relative path.
-
[SOLVED] GROUP BY sorting using MAX(): how to get rest of MAX(result) row?
Maq replied to batch's topic in MySQL Help
Your date field should be a TIMESTAMP. You also need an ORDER BY. You're getting the correct date because you select the MAX date but everything else is the record order. -
I think I'm confused... How are these files stored? The radio button selected is the file that's going to be edited? If that's the case, then make the radiobuttons the paths to the files, so when you get to the next page you can just open up the value of the radio button.
-
Hard to believe, but may be so. Tizag certainly won't confuse, it's one of the most basic references known to man. There's also plenty of examples on these forums. Good luck!
-
Regex checks for bbcode, variable empty? why aren't some variables processed
Maq replied to iarp's topic in PHP Coding Help
Instead of .* use .+ and for the blank scenario, create another entry with the url bb tags blank, replaced with blank. -
Yes you can use $file, but you don't end your .
-
Use perl. It's relatively easy to pick up, and is good for things like this.
-
Yeah that looks about right. Although, you may need a left join rather than inner, but if it works I guess I'm wrong.
-
[SOLVED] PHP Post, can you store these variables into an array?
Maq replied to SchweppesAle's topic in PHP Coding Help
You need to give the checkboxes the same name. Something like: name='authorid[]' -
Well I got form processing down pat its just when I am about to create an app like a forum I dont know where to start If you're just beginning then I advise you not to even attempt a forum. Start with the basics and work your way up. When you feel comfortable then read a tutorial or try to build a forum on your own. There's a reason you don't where to start.
-
Call a function with parameters stored within a variable as a String.
Maq replied to tmh766's topic in PHP Coding Help
Here's another basic example: function f1($var1){ $what = $var1; return $what; } function f2($var2){ $what2 = $var2 + 2; return $what2; } $variable = f1(f2(1)); echo $variable; ?> As long as f2 returns something it will pass it to f1 which returns $what and variable is assigned to it. -
You need to use a LEFT JOIN and an UPDATE.
-
Call a function with parameters stored within a variable as a String.
Maq replied to tmh766's topic in PHP Coding Help
What gives you doubt? Have you tried it? -
haha yeah. As far as expanding forums, I usually just click on, "Show unread posts since last visit". I believe it lists from every section.