[SOLVED] Advanced mathematics |
12/17/2009 1:12:09 PM |
PHPRunner General questions | |
J
johndf author
Dear All, I am an engineer trying to calculate complex numbers and trying to figure out how to do it in phprunner attached to a mysql database. |
|
A
|
alang 12/17/2009 |
Check out the online PHP manual - http://www.php.net/manual/en/ref.math.php |
J
|
johndf author 12/17/2009 |
Check out the online PHP manual - http://www.php.net/manual/en/ref.math.php (From another old engineer 1956ag <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=46242&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> ) |
J
|
johndf author 12/17/2009 |
My guess was right its php and it goes in the right box (Editor properties) now just got to figure out the other two parts of the problem out..Just what goes where? Many thanks from a fellow Brisbane engineer. |
J
|
Jane 12/18/2009 |
Hi, global $data;
|
J
|
johndf author 12/18/2009 |
Hi, use Custom format on the "View as" settings dialog on theVisual Editor tab for this purpose. Here is a sample: global $data;
|
T
|
thesofa 12/20/2009 |
just a question here, if the values in col1 and col2 are to be added together, thern the root calculated, why do you need to store it in the table, it seems to me to be redundant fata, anytime you need the value from col3, you could calculate it on the fly. |
J
|
johndf author 12/20/2009 |
just a question here, if the values in col1 and col2 are to be added together, thern the root calculated, why do you need to store it in the table, it seems to me to be redundant fata, anytime you need the value from col3, you could calculate it on the fly. Would that not work better?
|
J
|
jdu001 12/21/2009 |
Thanks for taking the time to reply, most appreciated, but I am not sure I understand what you mean here. I have seen this this sort of generic answer before and I guess you are trying to give advice, could you be more direct, it would be most appreciated. (from an Ex smoggie now in Aus). Remember there are a lot of new starters reading these posts for many years so any little tips are most useful. (I know I search and read these posts many times). Q1. When would you not store data?.......Q2 when would you store data.. Q3...what is redundant data Q4 how do you calculate on the fly...Many thanks
|
T
|
thesofa 12/21/2009 |
Wot he said! |
J
|
johndf author 12/21/2009 |
Wot he said! Thanks Jo Greeting Smog Monster! Bet aus is nicer than Teesside? For an example, lets look at an application where we are ordering various things from a supplier. I run a school network and I have to order supplies and equipment for all the departments, so I have written an orders database application I could have made it a flat table application where I kept all the info for each order in one record, but then I would have to enter the suppliers name and address etc each time I ordered from them, so I have normalised the tables, so I only enter an item once into one table, where possible. So I have a table of Departments, each order can only be for one department ( Bursar says so), So I have a look up table of departments Each order can only be to one supplier, I also have a look up table of suppliers Each order can be for many items, Items may be split across 1 or more deliveries Each delivery will only correspond to one order. A table of orders which carries the departmental code for each order, as well as the supplier code. The supplier table is the master table for the order_lines table, each record of which carries the order_code from the order table. The order_lines table is the master table for the delivery notes table The delivery notes table carries the order_lines code from the order_lines table. My application has a main page of deparments, I chose the department and the supplier from the tables, creating an order. then I select that order and add order lines. The application sums the order total and counts the total number of items. Office staff then place the order through the official dinosaur-like order system, allocating my order a number. They add the official order number to the order record, mark the order as processed and fax the order through to the supplier. When the goods are delivered, I add the delivery note number to the order_lines table, there maybe more than one delivery note per item. It takes a bit more coding from the start, but not much, and as 5.2 includes master and slave addition all in one form, I guess even less code now. It is really fast, I can pull reports for a supplier or deparment really easily and I know that it is as tight as I can get it. The next step is to link my tables to suppliers price lists so I can have up to the minute price info, but that will be a while off. I hope this explanation has helped rather than muddied the water. As always, Magpies help when they can, even tho we beat the smoggies this weekend!!
|
J
|
jdu001 12/22/2009 |
Hello, |
J
|
johndf author 12/27/2009 |
Hello, I will try to make an example with screenshots from every step. But this has to wait until wednesday. I hope you can wait until then. Greetings, Jo
|
J
|
jdu001 12/28/2009 |
Hello, |