You need a Grounds Gold Account to post on the NG BBS!If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!
At 11/4/09 01:27 PM, GustTheASGuy wrote:
It's a pattern to match comma-separated words, as it obviously doesn't have the FROM. Are you incapable of reading a short regexp?
You added FROM and it works, take the item at 1 and split it.
I did the second one first but I was looking to get an array that already had the info I wanted. Anyway, I tried what you said and then I tried using only string functions; the string functions were a lot faster according to microtime, so I'll use those. Thanks for the regex anyway.
This is what I have now. I'd like to extract all the tables from the query. With this code, it only returns the first.
Example:
SELECT * FROM table1,table2
This will return table 1, but not table2. How do I make it repeat the search for all the patterns? Or should I forget about regex and use string functions to extract the tables?
At 5/21/09 10:15 PM, zNelson24 wrote:
I went to functionX.com to learn a little C#, and they also have Javascript.
Many of the tutorial authors might assume you have some programming experience already, you might want to get a book. I learned a little Javascript taking modern world in high school.
You guys do release that almost every at Adobe uses a Mac and that Adobe is a lot closer to Mac then it is to Windows?
OP: It is the same like the Windows version but you have to download the dmg files instead. Once installed it will work like it does on your Windows, but usually faster.
At 5/15/09 05:18 PM, AlexisGOAR wrote:
here's a script for a game I'm making, and some explanation for newbies to understand.
Needs more comments.
the comments are in the scrippt in the // comments//
Are you kidding me? I was being sarcastic...
Not only did you fuck up the positioning of your comments (Write them above or under the line you want to explain, not both.) but you also managed to write more comments than actual code. I really hope you don't do that in all your code.
Even if it's to 'help newbies' you have to much comments. I don't think anyone will wonder what aimer_mc.gotoAndStop(1) does. If they do they need to learn the Flash interface and some English lessons.
At 5/7/09 09:26 AM, DFox wrote:
Preventing "JavaScript" injections has nothing to do with removing javascript:. Just worry about turning brackets into entities (htmlentities()), that way a JavaScript tag can never be interpreted...
I don't know what I was thinking, htmlentities() is so obvious. Thanks.
At 5/7/09 12:52 PM, Deja-Vu wrote:
Run the text through at least strip_tags() and htmlentities()
I don't understand the need for strip_tags(). I mean, don't all the tags get converted by htmlentities() to normal text?
I just wrote a little BB coding system and I'm going to add security to it now. I wanted to know if removing 'javascript:' is enough. This should prevent javascript injections right? SQL injections should be blocked already since I'm using prepared statements.
At 5/5/09 06:36 AM, Yambanshee wrote:
is your code being looped on a enterframe function then?
no thats the whole code
I think that I know your problem. When you enter this frame AS checks the if statement like expected but then no longer looks at it. You'll need an onenterframe.
At 5/4/09 04:42 PM, kiwi-kiwi wrote:
I can see it, I don't like that shade of green.
Plus the green in the site doesn't go with the red in the header (in my opinion at least).
I think this is 100% the template he downloaded with as only changes another header and different colours for the shoutbox.
Now instead of writing $column1,$column2, I want to have all the items of an array over there. In this array are the column names as strings. Below is something I tried but it obviously doesn't work. Is what I'm trying even possible?
Thanks for the help. I'll use different classes instead of one container class with lots of methods in it. When I see a good use for the nested methods I'll certainly give it a try. Also thank you for the link with the OOP tips!
I've used OOP in other languages and just started learning it in php as well. What I like to know is if the following is possible and if it is how and if it's good practice.
$myGeneralObject->aSubObject->method();
So you have one masterclass and in that class you have different classes for each part of your website. So an object for your members, one for your pages, etc...
alert(Frame);
setTimeout("FrameEffect1("+Frame+")",100);
}
function FrameEffect1(test)
{
alert(test);
}
This doesn't work. The first alert displays HTMLdivElement or something similar but the second alert in the function does not show. If I replace Frame with the number 10 in the setTimeout the second alert does show.
The code is correct I assume. The Frame element itself also exists since it gets alerted the first time. So why doesn't it work as an argument in this function?