Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. replace: $type=$_GET['type']; with this: $type= ($_GET['type']=="") ? "" : "type = '{$_GET['type']}'"; And replace: $result = mysql_query("SELECT * from properties WHERE type = '$type' AND bedrooms >= '$bedrooms' AND maxprice with this: [code]$result = mysql_query("SELECT * from properties WHERE $type AND bedrooms >= '$bedrooms' AND maxprice
  2. It can't recognize markitup... Where do you create the $markitup object in your ctp.php?
  3. Side note - Only double quotes will interpolate, single quotes will not.
  4. Only took a quick glance, but... I noticed on your flash version that it's hover sensitive (except gallery), which is kind of annoying. Also the pages fall behind each other. So to get to the desired page you have to exit out of the ones in front of it, which is also annoying. You should also try to condense your pages a little better because for some of them I have to scroll to see the full page (I am on a 15" monitor right now :-\ ). The heading on the gallery page is really big. I like the design, except for the elf lady (makes it look childish), but it covers the whole screen. The footer is boring, just black text... The HTML version looks simplistic and clean but it's a little too flashy. Why does the gallery load up a whole new page with a totally different color scheme. Makes me feel like I'm going to a completely different site. Overall it's pretty good, but could use some more work...
  5. What's the point of giving test() a parameter when it doesn't need it. You're assigning that parameter the class variable anyway. Also, when you call the function you don't give it a parameter... Why not do something like this: class Example { public $test_var = "Test"; public function test() { // echo $this->test_var; } } $example = new Example; $example->test(); ?>
  6. Read the manual. It contains all the answers, these are not meant to be secrets.
  7. fp is an alias for the table "forum_posts". It's just a shorter way to reference that table.
  8. Yes, a later version of PHP would be better to learn OOP as it is getting more and more OO. Better yet, learning a bit of Java would be a great way to learn, although it's a little more complex, IMO
  9. I think... you should post a link!
  10. If you go to that link make sure you read thorpe's post, wildteen switched private and protected. Variables are similar: Example with variables
  11. This would be reinventing the wheel. Please read this first.
  12. Surround your code with PHP tags and read this.
  13. Yes, if a cookie is created, you can access it with any language that supports cookies. Have you tested it?
  14. Not if people don't think your game is fun. Why would they stay? It could just be a waste of money...
  15. Are you sure these aren't mixed up? - f.id=m.forum_id Seems to make more sense if ibf_forums (f) had a forum_id and ibf_moderators (m) had a plain id.
  16. Why, what don't you think is right about it? Do you get errors/warnings? You should error check your queries too: $result = mysql_query($query) or die(mysql_error());
  17. Why don't out you write another cron that deletes the logs files? You need to be more specific as to what you want to delete and how you want to do this. There are multiple ways. Do you have ssh access?
  18. comment_approved == '0') { ?> Your Comment Is Under Moderation echo get_avatar( $id_or_email, $size = '50', $default = '/images/mygif.gif' ); } ?>
  19. Works for me. I get some warning when the website doesn't exist but when it does I get the correct output with zero errors/warnings.
  20. This should answer your question INET_ATON()
  21. Shuffle randomizes the elements in the array. You only have 1. There's nothing else to shuffle...
  22. Well since you brought it up maq.... I hope you're referring to the lazy part... or else I would have to h4x0rz you.
  23. I was actually being sarcastic and I really didn't know about those specific type of user stats. I'm glad you really don't think I'm lazy... or an idiot
  24. Damn, I'm exposed... Was that intended to illustrate my laziness to not check my user stats? Cause if it was, good illustration. Yeah sorry, I only skimmed over a couple of replies, obviously not yours. What does reading have to do with memory anyway?
  25. Let's have a poll to see if everyone wants polls. I've never even participated in a poll here, not to my recollection.
×
×
  • 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.