-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Ha I watched Top Gear last week, they did a bit on Chinese cars. It's insane how they get away with it, especially when you have people downloading a couple of illegal movies and going to prison. Edit: perhaps "a couple" might be a bit of an over exaggeration.
-
http://www.ie6countdown.com/ Quite surprisingly it's China that's holding things up the most - one of the most technologically advanced countries in the world!
-
It's called the "object operator", and allows you to access methods and properties within an object. Be careful to note the difference between a class and an object here though. I would suggest reading the manual's introduction to them: http://www.php.net/manual/en/language.oop5.basic.php
-
It's pretty dam shocking what's happening these days. Expect to see more sites like this: http://tvshack.net/ (redirects to youtube after a couple of seconds). Full story here.
-
The error you're getting would suggest it's an error with the call to checkAll(). Can you post that please?
-
js calculations have gone weird since adding a json array?!!
Adam replied to wright67uk's topic in Javascript Help
What data type is the price column? I'm guessing it's not a numeric type, and so json_encode() is (rightly) treating it as a string. -
The most efficient way of doing this would be to use a series of strpos calls. The first would need to find the first occurrence of a space from the start of the string; the second would need to find the next occurrence from after the point where the first was found; and then the third call would need to find the next occurrence from after the point where the second was found. Once you know the position of the third space, you can use substr to select the text after that point: $str = 'one two three four'; $pos1 = strpos($str, ' '); $pos2 = strpos($str, ' ', $pos1+1); $pos3 = strpos($str, ' ', $pos2+1); if ($pos3 !== false) { $str = substr($str, $pos3+1); } Using explode() will create a potentially large array when it's not necessary - much faster to seek through the string to find the positions.
-
Probably not. Its an Apple. I think you're thinking of Flash there.
-
jQuery and Google Search Ranking - does jquery affect rank?
Adam replied to scanreg's topic in Miscellaneous
Depends on the use of jQuery. Do you have a URL we can look at? If not, you'll need to describe exactly how you use it. -
I see what's going on. You'd better undo your zip..
-
I don't know what you think I'm selling here..?
-
Chrome uses NSPR and Apple WebKit, amongst a lot of other open source libraries. I can't remember why the appName property still says Netscape, but just use navigator.userAgent. Like appVersion though, the user agent will contain Apple and various other brands you probably wouldn't expect, but it's just down to the libraries used internally.
-
Oh yeah, and congrats kicken!
-
I will sell you some green. How much do you want?
-
Yeah, it is more than just a where condition. When defining the foreign key, you say "this_table.column references that_table.column". The on clause is just a repeat of that logic, in a different syntax. Although if there's more joins in question or the data is particularly complex, you may need to add more logic to that expression - especially if the table you're joining has a second relationship to a different table. You're better off starting simple and working your way up.
-
You mean in JOINs? That's essentially a WHERE clause for the join: where on (this.column = that.column)
-
Personally I would say there's no need to use output buffering. Just ensure all your "business logic" is executed before you begin to output the response body and you will be fine.
-
Somewhere in the world, something terrible just happened to someone. Don't ever say that again! Seriously they're not that difficult. The next time you get a problem, just post it here and someone will explain it I'm sure. If you don't understand what they're saying, just ask if they can explain it a little clearer. If they use buzz words or something that you don't understand though, you'd help yourself far more by looking them up and trying to understand what they're saying.
-
The jQuery documentation has a lot of examples.
-
No, we're not going to write it for you. Based on this thread and the last one I was involved with, you don't seem to want to understand the problem, you just want the solution. Even when I gave you the solution and explained it, given it didn't work 'out of the box' you just seemed to ignore it. Trial and error is all part of the learning process. If you're struggling with the syntax, keep the manual open for reference as you go. You'll soon pick it up.
-
We're not here to write your scripts for you. Best advice I can you give you would be to use jQuery - it makes manipulating the DOM and AJAX requests simple. First read up on selectors and events, and how you can use them to get the value of your inputs and capture the form submission. JavaScript is C-based syntax, like PHP, so you should be able to work out the basic syntax for the validation pretty easily. Then for AJAX requests just use the AJAX API. If you get stuck, by all means post what you have so far and we'll go from there.
-
I weren't trying to trample all over your effort I assure you. I just made a valid point, that Wordpress is going to be your biggest competitor. Whatever label or buzz word you give it, your product is still a system for managing content that you install on your web server, just like Wordpress. Anyway, moot point.
-
Oh don't get me wrong, I totally agree. Unfortunately that doesn't change anything. Sorry, but what a load of crap. Logging into Wordpress? a) Is that really such a chore? and b) does your product not require a login? What if I left it installed on my web server, would anybody that stumbled across it be able to start creating websites directly onto my file system? Also do you not add themes and content to yours? I saw a couple of screen shots that looked strangely like adding themes and content. Lastly, where does your product store the page data? Flat files, or in a database? Once you've created the site, can you edit them?
-
You're forgetting your actual competitor, Wordpress. It has all the same plus points that you've mentioned below, but also a huge user base. Good luck penetrating that market!