ober
-
Posts
5,327 -
Joined
-
Last visited
Posts posted by ober
-
-
Interesting... that looks very nice.
-
Well... we use SMF here (obviously) and it's rather reliable and completely customizable if you need it to be. All of my clients that run boards also run SMF.
I'm not aware of a forum software and CMS in one.
-
SMF for the forum... not sure about the CMS. I roll my own.
-
Do a search... this gets asked many times/day.
-
Just add a counter variable to the while loop:
$i = 1; while($row = mysql_fetch_array($result)) { echo $i . " " . $blah; $i++; }
-
SELECT * FROM players ORDER BY money DESC
-
There is no logical reason I can think of to combine the two where you would run through them in the same loop.
-
What kind of ranking are you referring to? What values are you storing?
-
echo "<OPTION value=\"".$row['security']."\">".$row['last_name']." ".$row['first_name']." ".$row['username']." ".$row['userlevel']."</OPTION>";
-
echo "Here the code to add to your Review.." . "<img src=http://www.futurewii.com/images/uploads/" . $_FILES["file"]["name"] . ">";
You are missing a quotation mark (bolded).
And just call "getimagesize()" on the image after uploading to determine the size.
-
Do not store them in the database. That's a complete waste of time and DBMS resources.
When you upload them to the server, simply append an ID to the front of the filename: 1234_pic_of_my_dog.jpg
Then you have a table in the database like this:
user_id | media_id
1 1234
1 2345
2 8942
etc.
Then when you need to display them, simply get all the ids for the user out of the table and go retrieve all the files that start with media_id_.
-
It is because you are using the OR operator. You are basically only asking that one OR the other is filled in. Simply change "||" to "&&" and it will check both.
Wrong. He wants to bail if either meets the criteria. For your scenario, both would have to fail.
-
www.cubecart.com
-
You cannot join multile results into one. If you can use JOIN in your SQL to get all the data in one query, then your problems will be solved.
-
Where are you storing the images? How are you storing them? How are you trying to get them out? Can you confirm that the upload is successful and the file is present?
-
Throw print_r($_POST); in front of all of that and verify your values. My guess is that it isn't what you're expecting.
-
Why don't you post your code and we'll tell you where you've gone wrong?
-
Did you login to PayPal and signup for their sandbox area?
-
<?php echo strtotime("+3 hours"); ?>
That's one approach.
-
You're missing a semi-colon after the fclose... can't you test it?
-
Also, make sure you remove any white space before the PHP tags and any tabs or extra spaces between the PHP tags and session_start(); (new lines are ok)
-
This is not a PHP question.
-
You could try removing that line and see if your SESSION is still active. Maybe it's something weird in the server configuration.
-
PHP will not return until the file has been completely uploaded. Do get a status bar, you'll need to use some AJAX or some other way to query the status.
CMS/Forum Software Suggestion
in Miscellaneous
Posted
IPB... that's what we used to use here. It's a security nightmare (or at least it was). I'd steer clear.