g9m29 Posted June 3, 2009 Share Posted June 3, 2009 Can someone tell me how can I insert statistic from MySQL in IMAGE ( like GIF ), and when I type the <a href="adsasd"></a> image can tell my about my statistic and also be, self-reloaded :S PLEAS ( I'm not english speak person, sorry for grammer mistakes ) Link to comment https://forums.phpfreaks.com/topic/160804-php-statistic-in-image/ Share on other sites More sharing options...
ldougherty Posted June 3, 2009 Share Posted June 3, 2009 What exactly is it you are trying to do? When you say statistic from mysql what do you mean? Are you trying to output a query result and save that as an image? Link to comment https://forums.phpfreaks.com/topic/160804-php-statistic-in-image/#findComment-848677 Share on other sites More sharing options...
g9m29 Posted June 3, 2009 Author Share Posted June 3, 2009 Ok. Let's have that situation: I've got a guests, users, and admins counter ( how many are online at current moment ). And I'd like to save that information in image and then put it in my profile ( for example ), and the information in image I'd like to be self-reloaded ( When the statistic is changing, I'd like to change by it self in image )...... ok, There are images in many profiles that show u ur IP, that's I wanna make :? ( something like that ) Link to comment https://forums.phpfreaks.com/topic/160804-php-statistic-in-image/#findComment-848679 Share on other sites More sharing options...
ldougherty Posted June 3, 2009 Share Posted June 3, 2009 Well there is a couple issues with that concept.. 1) You would need to somehow take the information generated from your query and convert this to an image of sorts. This is not impossible, just requires some skill with ImageMagick. I suggest reading up at http://us2.php.net/imagick and just go a search on Google for ImageMagick as you'll see a lot of tutorials. 2) The more perplexing information is that you said you want this information to keep updating. Well depending on how often you want this to update each time you update would require you to run the query again and rebuild the image again. This could become very server intense quickly. Link to comment https://forums.phpfreaks.com/topic/160804-php-statistic-in-image/#findComment-848710 Share on other sites More sharing options...
g9m29 Posted June 3, 2009 Author Share Posted June 3, 2009 tnx man, u are awesome Link to comment https://forums.phpfreaks.com/topic/160804-php-statistic-in-image/#findComment-848725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.