Search found 113 matches

by chris12295
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
by chris12295
Fri May 11, 2007 2:00 am
Forum: PHP - Theory and Design
Topic: Object Relational Mapping
Replies: 21
Views: 5000

So by mapping rows wouldn't the queries to the database be inefficient if you need several user's info? For example if the object maps to a row then each user would require a seperate database query
by chris12295
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?
by chris12295
Thu Mar 29, 2007 10:11 am
Forum: Javascript
Topic: Prototype Ajax Urlencode
Replies: 2
Views: 3003

Well its not that the data is stored without the line feeds, its that it will not store any data at all in the database.
by chris12295
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')....
by chris12295
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?
by chris12295
Tue Mar 06, 2007 3:56 pm
Forum: The Enterprise
Topic: WEb Design Copyright
Replies: 7
Views: 7621

Thank you, thats what I wanted to know.
by chris12295
Tue Mar 06, 2007 2:26 pm
Forum: The Enterprise
Topic: WEb Design Copyright
Replies: 7
Views: 7621

So you can copyright a design but does that include layout? For example could I use the layout of facebook but have different colors and images?
by chris12295
Mon Mar 05, 2007 8:00 pm
Forum: The Enterprise
Topic: WEb Design Copyright
Replies: 7
Views: 7621

What criteria?
by chris12295
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?
by chris12295
Sun Mar 04, 2007 10:44 pm
Forum: Javascript
Topic: Might be an Easy Fix
Replies: 2
Views: 903

<script type="text/javascript" language="javascript"> function challenge() { alert("bye"); } </script> <div id="left" class="column"> <br /> <br /> <a href="index.php">Home</a> <a href="register.php">Register</a> <a href="he...
by chris12295
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...
by chris12295
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...
by chris12295
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?
by chris12295
Fri Mar 02, 2007 10:55 am
Forum: General Discussion
Topic: Macromedia Dreamweaver Syntax Coloring
Replies: 5
Views: 2219

It is a stylesheet written in a PHP document but it is CSS. So how would you override the syntax?