Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You use iframes for a forum...? Anyway, you're looking for something like WordPress. It's a free CMS for blogging.
  2. I don't understand what the problem is. SELECT $new_val = $row['field'] + 1; INSTERT $new_val
  3. You may want to look into a CMS. Like wordpress for example. This isn't "easy" help by the way. You want to build a whole system, a custom one at that. You may be better off posting in the freelance section... Do you have any knowledge of PHP or any web languages?
  4. This is growing wild, to the point where it's useless. If you summarize what everyone has said, as far as design and looks, your site needs to be redone. There's nothing you can do to it to make it look good in any way. Not to be rude
  5. Hehe. I looked at it and saw 83 replies... I had to see what in the world you guys were talking about.
  6. I understand that. All I meant was that you'll have better feedback and help if you move this to the mod_rewrite section. I linked it in my last post.
  7. This topic is really getting long. You're better of trying what phpSensei suggested and posting a new thread with a specific answer. Not trying to be rude, but I know I wouldn't sit here and read through all that.
  8. This is NOT tested, but should work... $getbyes = "SELECT COUNT(teamid), userid FROM picks WHERE teamid = '33' GROUP BY userid"; $get_bye_user = mysql_query($getbyes, $connection) or die(mysql_error(); while($row = mysql_fetch_array($get_bye_user)){ echo "There are ". $row['COUNT(teamid)'] ." for userid: ". $row['userid'] . " "; } You don't need to specify tables (i.e. picks.teamid) because you're only dealing with a single table. Hope this is what you're aiming at!
  9. Maybe in the mod_rewrite section?
  10. I think it looks much better. You should have some inner containers. For example your About Us page is just text with a gray background. Spice it up a little!
  11. It's called a ternary operator. TRUE('?') ELSE(':'). $field = ($row['field'] == 0) ? 0 : $row['field']; Is the same exact thing as: if($row['field'] == 0) { $field = 0; } else { $field = $row['field']; }
  12. Why is everyone connecting to a database? He only wanted an if elseif statement... Use premiso's, or rather use my updated version of premiso's.
  13. lol why post the same thing as premiso. I didn't, take a look at the comments
  14. if ($field == 0) { echo 'Some Text'; //need single }elseif ($field == 1) { echo 'Do something else!'; //and another! }
  15. Or, you could call clean() inside a foreach loop. foreach($_POST AS $key => $value)
  16. Some variables? session_start(); $a = 1; $b = 2;
  17. Ummm... What kind of game do you want to make? Can you elaborate more, besides using the word text-based? Give some details, like rules, objectives, etc...
  18. I don't think he's willing to pay. I'm going to go with Avast because it has had the most positive comments. If Avast doesn't work out for some reason I'll check out ESET NOD32. Thanks again all.
  19. Can you do: print_r($theline); and tell me what the output is?
  20. You need to use an array as Mchl said. Example: Then, however you submit, you can use for loops to iterate through the arrays!
  21. Maq

    HELP ME !!

    Again, why is having a problem with installing a distro of linux on a ps3, a PHP Help issue? Read this article.
  22. Maq

    HELP ME !!

    How does this have to do with PHP?
  23. They are right, you were assigning (=) a to 1 every time you looped through. You need to compare (==) a to 1. Why not pass $i to the function in the for loop? function myfuction($a){ $a+=1; echo ($a==1) ? "this function has been loaded " .$a. "time " : "this function has been loaded " .$a ." time(s) " } for($i = 0; $i myfuction($i); } ?> FYI: You spelled function wrong.
  24. $url = "products.php?dealer_id=" . $leftrow['dealer_id'] . "&category_id=" . $leftrow['category_id'] ."";
  25. Thanks for the info! I'll post again when my friend manages to still get malware on his computer...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.