Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. I don't think you have to do that... I would have to examine your code. Yes there is. Again, code is the easiest way to determine a good solution.
  2. Maq

    I...

    Haha, that's truly hilarious!
  3. Maq

    I...

    I don't have anything against Mac users. I just grew up with PC's and never had a reason to change to anything else. I have an iPhone, does that count?
  4. No, he would still be comparing boolean vs string... cornelombaard, you need to clarify what exactly you're trying to do here. I guess you're trying to see if the date is today and if it's valid. But where does this date come from?
  5. Why have 3 forms? Can you post all of the code.
  6. Maq

    I...

    They should change their logo to a hamburger... Then I would think about getting one... Wait, nah I still wouldn't.
  7. I know. My point is that even if he were using the == operator he would be comparing 2 different types. Boolean and string (the date). if($checknow == $today) Would be: if(TRUE == "18/12/08") ?
  8. First of all you need to use the comparison operator not assignment on this line: onfocus="if (value='i.e ITA001') Change to: onfocus="if (value=='i.e ITA001')
  9. No, you use them yourself. I'd agree with NEW but not WELL. Still looks REALLY bad. The colors are awful and don't really see even a trace of CSS or tables... STOP USING CAPS!!!
  10. What exactly are you trying to accomplish? checkdate(12, 18, 2008) - all checkdate() does is return TRUE or FALSE depending if the date is valid... So this statement: if ($checknow = $today) is equivalent to: if($checknow = 18/12/08)
  11. It's OK. People probably told you to move it when they should have reported it for moderators to move. Anyway, MrAdam's solution didn't work?
  12. Maq

    I...

    Like burnside insisted, the only mac I like is a big mac...
  13. Providing code is the easiest way for us (mostly developers/programmers) to solve your problem. Unless it is some kind of design issue.
  14. If that --^ doesn't solve the problem, we need to know what the checkdate function looks like...
  15. Please double posting is a waste of time. Won't get you anywhere.
  16. I guess we could pick out a style or, help you create topics but you can just look at other forums for that.
  17. $filled = 0; $query = "SELECT * FROM modlpae WHERE userid = '$user'"; $result = mysql_query($query) or die('Error : ' . mysql_error()); $total = mysql_num_rows($result); $track = $total; while ($row = mysql_fetch_assoc($result)) { $q = "q".$track; if($row[$q] != '') { $filled++; $track--; } else { $track--; } } $percentage = $filled/$track*100; echo $percentage; ?>
  18. lol, that's one of his "masterpieces". I guess this is what they mean by beauty is relative...
  19. Where does $_POST['select'] and $_POST['category'] come from? I'm guessing another form? Please post all of your code.
  20. Yeah I know. Whenever I take the time to answer a topic, someone else has usually beaten me there!
  21. My whole point was to put it in a function so that you can have more conditionals. It's also better if you're going to invoke this function a lot.
  22. I know this topic is solved but I found this little function online that is a little more versatile. function table_exists($table) { $connection = mysql_connect($myinfo_host, $myinfo_user, $myinfo_pass) or die(mysql_error()); mysql_select_db($myinfo_base, $connection) or die(mysql_error()); if(!(mysql_query("SELECT * FROM $table"))) { //what to do if table doesn't exist } mysql_close($connection); }
  23. Can you drop a table that doesn't exist...
  24. You mean - http://blikvoer.com/temp/samtest/index.php?pagina=portfolio ?
×
×
  • 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.