如何将唯一ID分配给图像和图像的映射部分链接它与数据库 [英] How to assign a unique IDs to the mapped portion of an image & link it with database

查看:145
本文介绍了如何将唯一ID分配给图像和图像的映射部分链接它与数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了建筑物平面图的图像映射。现在我想存储图像的映射部分,每个地图都有其唯一的ID。然后将ids存储到mysql数据库表中。所以我可以通过从数据库表中指定其位置ID来突出显示(或在图像的一部分上放置标记)。

I have created an image map of a floor plan of a building. Now I want to store the mapped portions of image with each map having its unique id. and then store the ids in to mysql database table. so that I can highlight (or place a marker on) a portion of the image just by specifying its location ID from database table.

推荐答案

这个要求当然可以满足。

This requirement can certainly be met.

总之,应用程序的组件部分如下:

In summary, the component parts of the application will be something like this :


  • 存储用户数据:数据库

  • 存储地图区域坐标:数据库

  • 从数据库检索用户数据和地图坐标:PHP * SQL

  • 文档(包括图片映射)的组成:PHP *

  • 客户端 - 服务器通信:(jQuery)AJAX

  • 区域突出显示:(jQuery) MapHighlight插件

  • Storage of user data: database
  • Storage of map area coordinates: database
  • Retrieval of user data and map coordinates from database: PHP*/SQL
  • Composition of document (including image maps): PHP*
  • Client-server communication: (jQuery) AJAX
  • Area highlighting: (jQuery) MapHighlight plugin

  * 通常

你真的需要写作一些代码,然后再问时遇到困难。

You really need to have a go at writing some code, then ask again when you run into difficulty.

这篇关于如何将唯一ID分配给图像和图像的映射部分链接它与数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆