Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
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
-
markitup & jquery editor with cakePHP "Undefined variable: markitup"
Maq replied to farkewie's topic in Frameworks
It can't recognize markitup... Where do you create the $markitup object in your ctp.php? -
Side note - Only double quotes will interpolate, single quotes will not.
-
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...
-
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(); ?>
-
Read the manual. It contains all the answers, these are not meant to be secrets.
-
fp is an alias for the table "forum_posts". It's just a shorter way to reference that table.
-
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
-
I think... you should post a link!
-
If you go to that link make sure you read thorpe's post, wildteen switched private and protected. Variables are similar: Example with variables
-
This would be reinventing the wheel. Please read this first.
-
Surround your code with PHP tags and read this.
-
Yes, if a cookie is created, you can access it with any language that supports cookies. Have you tested it?
-
Not if people don't think your game is fun. Why would they stay? It could just be a waste of money...
-
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.
-
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());
-
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?
-
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.
-
This should answer your question INET_ATON()
-
Shuffle randomizes the elements in the array. You only have 1. There's nothing else to shuffle...
-
Well since you brought it up maq.... I hope you're referring to the lazy part... or else I would have to h4x0rz you.
-
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
-
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?
-
Let's have a poll to see if everyone wants polls. I've never even participated in a poll here, not to my recollection.