在我的微型项目中有些疑问 [英] some doubt in my miniproject

查看:80
本文介绍了在我的微型项目中有些疑问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我包含了这个编码



I include the this coding

<body>
<script language="JavaScript">
   VIH_BackColor = "palegreen";
   VIH_ForeColor = "navy";
   VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
   VIH_DisplayOnPage = "yes";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
</body>



用于显示系统的公共ipaddress ....



但我不知道如何将ip地址插入我的数据库(db)



请有人帮助我......


For Showing public ipaddress of the system....

But i don''t know how to insert the ip address to my database(db)

Please Some one help me......

推荐答案

IP地址只是一个字符串。您需要具有最小(20长度)的VARCHAR列并将其插入其中。 IPv4地址。不确定IPV6的长度。
IP Address is just a string. You need to have a VARCHAR column of minimum (20 length) and insert the same into it. IPv4 address. Not sure about the length for IPV6 though.


这篇关于在我的微型项目中有些疑问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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