Re: [Fwd: Re: [PHP] Displaying information from table graphically]
| From: | Nathan Rixham | Date: | Sat, 22 Nov 2008 19:39:40 +0000 |
| Subject: | Re: [Fwd: Re: [PHP] Displaying information from table graphically] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283684@lists.php.net to get a copy of this message | ||
Ashley Sheridan wrote:
On Sat, 2008-11-22 at 19:47 -0100, dzenan.causevic@wise-t.com wrote:or just go for flex and pull xml(custom, xml-rpc,soa, whatever) directly from your php scriptsSince I am not an expert in FLASH, I need to make sure I understand what you suggested below.From what I understand I can pass the data from SQL query to Flash viasome sort of flash parameters (flashvars), but I am not sure what XML file serves here for? All I need is to somehow trigger SQL updates from within the FLASH file.I suggested the XML because flashvars isn't really suited to large amounts of data, whereas XML is. Ash www.ashleysheridan.co.ukOn Sat, 2008-11-22 at 15:20 -0100, dzenan.causevic@wise-t.com wrote:At least that eliminates GD as an option for this particular purpose. Yes exactly something Flash like that allows interaction as well. But how to exchange data between flash multimedia file and MySQL queries. This is a serious issue, this is not trivial. I know there must be some way, but I also dont know if it's worth it. That's why I need to do this research in order to determine what kind of work this particular project would involve. Your help is invaluable in that respect. Thanks goes to all of you zillion times :)I assume that to get this data you are querying based on some sort of ID? Why not pass that to you Flash file (with flashvars or something similar) and then have your Flash call an external XML document. The XML document does not have to exist, but it can be a PHP file which displays as an XML in much the same way you use PHP to output HTML (just make sure to set the correct headers). Then you can get all the information you need from within Flash. Ash www.ashleysheridan.co.ukOn Sat, 2008-11-22 at 14:22 -0100, dzenan.causevic@wise-t.com wrote:allowI mean composite in a figurative way, but they have to be overlapping individual images in order to be individually clickable. Does GDwrote:that? Can I create multiple images on the top of each other in GD? And how would imagemap work in this respect?On Sat, 2008-11-22 at 12:51 -0100, dzenan.causevic@wise-t.combeOkay I would probabily define few functions such as room(), bed(), bed_status() etc. that I could use for any room and then it wouldtoUserjust a matter of passing right arguments to those funtions. However would those beds within the room composite graphic be individually clickable? So the composite graphic must be interactive in nature.must be able to click on individual beds inside the room in orderinteraction?change its status. Would GD approach allow this kind ofAndwrote:On Sat, 2008-11-22 at 12:14 -0100, dzenan.causevic@wise-t.comdo.It's not kind of a school/college project that I am too lazy tobelieveIt'sjust a matter of having 800 rooms and about 2,500 beds so Ifunctions.it'sgonna take forever defining all of those graphics via GDGD'sThat's why I think I need to go with some rapid approach. I never usedsoI dont even know how complex it is generating graphics this way.graphicalsothose graphics dont need to be sophisticated. Just simpletask. Iindicatingrepresentations of rooms and beds in few different colorswheter bed is free, occupied, or reserved. GD just seems too powerful and too time consuming for thisTherecapabilities.probabily need some rapid approach with limited graphicwrote:Does such exist that's my question at this point of timeOn Fri, 2008-11-21 at 16:55 -0100, dzenan.causevic@wise-t.comI have a PHP application that accesses data from MySQL.tableistablecalled "rooms", and table called "beds". There is anotherarecalled"patients". Patients are being placed into beds, and bedswhichininformationthetextualrooms. PHP application currently displays all information inmode via regular HTML tags. But I would like to have thatinside.displayed in graphical mode instead of textual mode. Is there a way to display this information from the database graphically. Graphic would represent a room, and it would contain bedsYouwould be able to see visually which beds are occupied andviaarefreeby looking at the graphics. User of the system wants pictures instead of text displayedyou'reHTMLtables as a list of entries. Anyone knows anything like this? Thanks, DzenanThis sounds a lot like a school/college/uni project thatsaytoolazyto research... Correct me if I'm wrong. The other guys who have answered are all spot on when theydifficultyouneedGD is fine for what you need to do, and it shouldn't beto look at the GD library. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phportofunctioncreate what you need to do. There isn't any pre-built rooms()thein it, but just build that yourself and use basic math to createlikeThe only way you could achieve clickable parts of a composite imagegraphics you need. Ash www.ashleysheridan.co.ukthat is either to not have it as a composite and use many images,useI don't think you can do that in anything. GD outputs an image, which can be made up of layers, but there is no provision in the browser to allow you to select an image below another one even if you can see it because the top-most image is transparent. I think what you're really looking for is something Flash based? Ash www.ashleysheridan.co.ukan imagemap. Ash www.ashleysheridan.co.uk