
trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Validation Text Area To Dont Let Insert Emails Or Website Links
trq replied to madness69's topic in Javascript Help
You do realise that using Javascript to do this means that users can simply bypass your checks? -
Don't try and force functions to use variables declared in the globals namespace, it defeats the a big part of there purpose.
-
You don't need any regular expression, see json_decode.
-
Setting A Variable, Ternary Operator Vs. Error Control Operator
trq replied to jmartinsen's topic in Application Design
You doubt there is any performance issues? When PHP generates an error there are costs involved. Simply suppressing the error does not eliminate all of these costs.- 6 replies
-
- ternary operator
- error control operator
-
(and 1 more)
Tagged with:
-
I'm not sure you understand the purpose of this forum.
-
How To Get At Information That's In The Url Of The Site?
trq replied to yoursurrogategod's topic in PHP Coding Help
To access these parameters you would use the getParams() or getParam() method of the Request object. -
Why aren't you using a where clause in your initial select query in the first place?
-
Care to format your code so that it is readable?
-
I follow the PSR-2 standard, so the closing ?> must be omitted.
-
We can't really help much without seeing your code.
-
nl2br appends <br> tags after newline characters so you do NOT wont to use it when displaying data in a textarea. Why don't you post your actual code?
-
How To Echo Option All Lowercase With Spaces Removed.
trq replied to flavaflav37's topic in Applications
Have a look at your code. It doesn't make much sense. -
If they are programs that can be invoked via some form of shell you can use one of the exec family of functions. Otherwise, if they are written in C, you might like to turn them into PHP extensions (though this will be a fair bit more work).
-
SELECT c.camp_title, c.camp_info, u.email FROM camp c LEFT JOIN users u ON (u.id = c.id_owner
-
Before you can get any help, you will first have to define exactly what a datalist is.
- 3 replies
-
- javascript
- html
-
(and 2 more)
Tagged with:
-
The code you have posted does not do what you describe, nor is it php. Why have you posted in the Application Frameworks section? Care to provide more information?
-
How Can I Insert String With Single And Double Quote Into Mysql Table?
trq replied to colap's topic in PHP Coding Help
There is nothing particularly special about it. Just escape your data as per usual. -
Not sure about your issue,b ut, none of the variables you have declared at the top of your script are available to the functions. Functions have there own scope.
-
localhost is just a hostname that automatically points to the computer it is being used on. As for explaining how web servers work, that is not something that can be easily described in a simple forum reply.
-
This resonates with me more than anything else. http://blog.sanctum.geek.nz/series/unix-as-ide/
-
My main motivation for working in vim is the fact that we do allot of remote stuff via ssh on client machines at work. So, now I can use the same editor under all circumstances. Even when I work from home, it's so much easier to just connect to the vps, ssh in and open vim in a terminal. I don;t have to worry about the overhead of a Desktop.
-
Have you tried an IDE? I used to think a simple text editor was all I needed too, but then I tried an IDE. The only time I use a regular text editor now is just for real quick edits, or stuff that I don't want to make into a project in my IDE. IDE's tend to get in my way. All I use is vim with a few plugins: https://github.com/tpope/vim-pathogen https://github.com/tpope/vim-fugitive https://github.com/tpope/vim-unimpaired https://github.com/vim-scripts/taglist.vim https://github.com/vim-scripts/sessionman.vim https://github.com/vim-scripts/bufexplorer.zip https://github.com/tpope/vim-surround https://github.com/vim-scripts/FuzzyFinder
-
I'm a massive vim fan so don't really have much of an opinion when it comes to IDE's.
-
That's because MS sux balls.