Search found 113 matches
- Fri Feb 08, 2008 9:10 pm
- Forum: Databases
- Topic: Using SHOW in Subquery
- Replies: 0
- Views: 213
Using SHOW in Subquery
Is something like this possible? SELECT Column_name FROM (SHOW INDEX FROM $_table) AS a WHERE a.Non_unique = 0 If not, how can I select the PRIMARY KEY column name for a table and use it in the same query? For example I need to say: SELECT primary key FROM $_table WHERE $this->pKeyField = $this->pKey
- Fri May 11, 2007 2:00 am
- Forum: PHP - Theory and Design
- Topic: Object Relational Mapping
- Replies: 21
- Views: 5000
- Thu May 10, 2007 11:27 pm
- Forum: PHP - Theory and Design
- Topic: Object Relational Mapping
- Replies: 21
- Views: 5000
Object Relational Mapping
What are some good tips to designing an ORM class? Specifically, is it more efficient for the object to represent a row in a table or the whole table?
- Thu Mar 29, 2007 10:11 am
- Forum: Javascript
- Topic: Prototype Ajax Urlencode
- Replies: 2
- Views: 3003
- Wed Mar 28, 2007 9:43 pm
- Forum: Javascript
- Topic: Prototype Ajax Urlencode
- Replies: 2
- Views: 3003
Prototype Ajax Urlencode
I am having trouble using prototype to send an ajax request. I have a textarea that needs to have newlines in it but for some reason when i decode the value in php, it will not store in the database. Here is mycode: function leaveNote() { var note = escape(el('leavenote').value); var to = el('tid')....
- Wed Mar 07, 2007 5:31 pm
- Forum: Javascript
- Topic: Javascript Question
- Replies: 1
- Views: 923
Javascript Question
I have seen some scripts that look like this <script src="foo.js?6:53522"></script>.
What is that query string used for? Is that a port or a token?
What is that query string used for? Is that a port or a token?
- Tue Mar 06, 2007 3:56 pm
- Forum: The Enterprise
- Topic: WEb Design Copyright
- Replies: 7
- Views: 7621
- Tue Mar 06, 2007 2:26 pm
- Forum: The Enterprise
- Topic: WEb Design Copyright
- Replies: 7
- Views: 7621
- Mon Mar 05, 2007 8:00 pm
- Forum: The Enterprise
- Topic: WEb Design Copyright
- Replies: 7
- Views: 7621
- Mon Mar 05, 2007 7:49 pm
- Forum: The Enterprise
- Topic: WEb Design Copyright
- Replies: 7
- Views: 7621
WEb Design Copyright
I have heard that web designs are copyrightable and any site looking the same or similar violates copyright laws and I have heard the opposite. Which is true? Are web designs copyrightable?
- Sun Mar 04, 2007 10:44 pm
- Forum: Javascript
- Topic: Might be an Easy Fix
- Replies: 2
- Views: 903
- Sun Mar 04, 2007 10:17 pm
- Forum: Javascript
- Topic: Might be an Easy Fix
- Replies: 2
- Views: 903
Might be an Easy Fix
feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Everytime...
- Sun Mar 04, 2007 12:39 am
- Forum: PHP - Code
- Topic: Contrast Color
- Replies: 3
- Views: 657
this is my code so far but it doesnt seem to be working any ideas? <?php class csscolor { function __construct($color1, $color2, $steps) { $this->makeShades($color1, $color2, $steps); } private function makeShades($c1, $c2, $steps) { $start['r'] = hexdec(substr($c1, 0, 2)); $start['g'] = hexdec(subs...
- Sat Mar 03, 2007 9:57 pm
- Forum: PHP - Code
- Topic: Contrast Color
- Replies: 3
- Views: 657
Contrast Color
I cant find a function to take a background color and generate a foreground color that is the optimum contrast and brightness according to http://www.w3.org/TR/AERT#color-contrast. Can anyone create such a function or know where one might be?
- Fri Mar 02, 2007 10:55 am
- Forum: General Discussion
- Topic: Macromedia Dreamweaver Syntax Coloring
- Replies: 5
- Views: 2219