Current location: Hot Scripts Forums » Programming Languages » PHP » creating calculated fields in mysql resource after query


creating calculated fields in mysql resource after query

Reply
  #1 (permalink)  
Old 07-31-03, 06:47 AM
Abu Mami Abu Mami is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Israel
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
creating calculated fields in mysql resource after query

Hi,

I would like to know if the following is possible...

First, I run a query on my database mysql_query("select blah blah ..."). I then want to perform some calculations based on the fields in the returned resource, and save these values in newly created fields for each row of the resource. Is this possible?

I want to do this because I would like to sort the database based on these calculated fields.

The other way to do this would be to save the calculated values in the database itself. Then when I do the query, I'll get these fields as part of the returned resource. I don't want to do this since it takes up space in the database.

Can anyone share some gems of wisdom on this.

Thanks!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
Make a query that makes a field a link to the entire row mdhall PHP 8 10-09-03 06:18 PM
URL MySQL Query tgarske PHP 4 09-09-03 09:57 AM


All times are GMT -5. The time now is 04:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.