jay83r Posted December 7, 2011 Share Posted December 7, 2011 Hi there, I am building a custom configuration program, where i want people to choose various items, e.g. 1. Size of a table, colour, how many drawers, other features. I want to store all my options in mysql tables. At the end of the process I want to somehow get mysql to get line co-ordinates from a table and dynamically draw a plan view and elevation view of the table showing the options that the customer has chosen. I was wondering if anyone has ever been able to do this. I'm not sure how to start, or if php is capable of doing this. any ideas would be great. Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/ Share on other sites More sharing options...
xyph Posted December 7, 2011 Share Posted December 7, 2011 It's capable, but it's not a good beginner project. Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295109 Share on other sites More sharing options...
jay83r Posted December 7, 2011 Author Share Posted December 7, 2011 are there any resources that would point me in the right direction. i've got a decent understanding of php and sql but im not an addict. Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295113 Share on other sites More sharing options...
xyph Posted December 7, 2011 Share Posted December 7, 2011 Are you simply doing line drawings? Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295115 Share on other sites More sharing options...
QuickOldCar Posted December 7, 2011 Share Posted December 7, 2011 as xyph said, it will not be easy gd can create lines, boxes and even fancy stuff http://www.php.net/manual/en/book.image.php to make rectangles look into imagefilledrectangle or imagerectangle http://www.php.net/manual/en/function.imagefilledrectangle.php http://php.net/manual/en/function.imagerectangle.php Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295140 Share on other sites More sharing options...
jay83r Posted December 7, 2011 Author Share Posted December 7, 2011 thats what i was looking into gdimage. Wasn't sure if there was something else out there. Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295141 Share on other sites More sharing options...
QuickOldCar Posted December 7, 2011 Share Posted December 7, 2011 There are others can use as well http://www.php.net/manual/en/refs.utilspec.image.php Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295142 Share on other sites More sharing options...
xyph Posted December 7, 2011 Share Posted December 7, 2011 ImageMagick is another popular option Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295147 Share on other sites More sharing options...
SergeiSS Posted December 7, 2011 Share Posted December 7, 2011 ...but it's not a good beginner project. Why? It's not difficult. Let him try it Quote Link to comment https://forums.phpfreaks.com/topic/252630-drawing-lines-by-getting-coordinates-from-mysql-database/#findComment-1295174 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.