Search found 41 matches
- Tue Mar 06, 2007 8:56 pm
- Forum: PHP - Code
- Topic: Easiest way to fetch filename
- Replies: 4
- Views: 642
- Tue Mar 06, 2007 8:13 pm
- Forum: PHP - Code
- Topic: Easiest way to fetch filename
- Replies: 4
- Views: 642
Easiest way to fetch filename
Strangely I can't seem to find an easy way to determine the filename of the currently running script. I don't want the pathname, just the filename itself. Example, for a file in http://www.foo.com/bar/blah.php, I would want blah.php . Basically, I have a series of php files which draw together multi...
- Sat Feb 10, 2007 9:32 pm
- Forum: PHP - Code
- Topic: [Solved]XML document saved with bad formatting
- Replies: 17
- Views: 4510
- Fri Feb 09, 2007 10:54 am
- Forum: PHP - Code
- Topic: [Solved]XML document saved with bad formatting
- Replies: 17
- Views: 4510
- Fri Feb 09, 2007 10:17 am
- Forum: PHP - Code
- Topic: [Solved]XML document saved with bad formatting
- Replies: 17
- Views: 4510
- Fri Feb 09, 2007 9:08 am
- Forum: PHP - Code
- Topic: SQL query question: Searching for multiple key words
- Replies: 3
- Views: 552
If I understand correctly about your reference to SQL injection, I believe I'm safe by using: $terms = sqlite_escape_string($_GET['searchquery']); Or were you referring to that fact that, in my current code, a user could input a million search terms and PHP would create a massive overloaded query? T...
- Fri Feb 09, 2007 9:03 am
- Forum: PHP - Code
- Topic: [Solved]XML document saved with bad formatting
- Replies: 17
- Views: 4510
- Fri Feb 09, 2007 1:38 am
- Forum: PHP - Code
- Topic: [Solved]XML document saved with bad formatting
- Replies: 17
- Views: 4510
- Fri Feb 09, 2007 1:20 am
- Forum: PHP - Code
- Topic: SQL query question: Searching for multiple key words
- Replies: 3
- Views: 552
- Fri Feb 09, 2007 12:55 am
- Forum: PHP - Code
- Topic: SQL query question: Searching for multiple key words
- Replies: 3
- Views: 552
SQL query question: Searching for multiple key words
I have a basic SQLite table with various short entries. I am creating a simple search by doing something like: $term = $_POST['search']; $query = "SELECT * FROM Posts WHERE title LIKE '%".$term."%'"; $result = $db->arrayQuery($query,SQLITE_ASSOC); It works great, but what I would...
- Fri Feb 09, 2007 12:49 am
- Forum: Javascript
- Topic: Multiple keyword search.
- Replies: 1
- Views: 600
Multiple keyword search.
I have a basic SQLite table with various short entries. I am creating a simple search by doing something like: $term = $_POST['search']; $query = "SELECT * FROM Posts WHERE title LIKE '%".$term."%'"; $result = $db->arrayQuery($query,SQLITE_ASSOC); It works great, but what I would...
- Thu Feb 08, 2007 9:19 pm
- Forum: PHP - Code
- Topic: Unbalanced includes
- Replies: 9
- Views: 1234
Sure, I knew how: a) Give it to a developer, they'll make it work b) Use File > Publish c) Use Dreamweaver Insert Flash (Ever wonder why there's so much horrible markup out there? Choose b) and c) ) Needless to say, I *started* learning AS before HTML. I learned HTML (the whole 30 seconds it takes t...
- Thu Feb 08, 2007 9:07 pm
- Forum: PHP - Code
- Topic: [Solved]XML document saved with bad formatting
- Replies: 17
- Views: 4510
Most likely that is the case, although I can't think of a situation where that would be true, other than for attributes(line break would obviously blow that apart). The problem is, I'm using the line-breaks in text node content, so it's obviously safe. Still kinda stumped how to deal with it. My onl...
- Thu Feb 08, 2007 8:58 pm
- Forum: PHP - Code
- Topic: Unbalanced includes
- Replies: 9
- Views: 1234
- Thu Feb 08, 2007 8:48 pm
- Forum: PHP - Code
- Topic: Unbalanced includes
- Replies: 9
- Views: 1234