我正在制作一个表格,以记录所有形式数据,并将其储存在数据库中,我想使用一些表格数据,以形成一种习惯式5用户,防止多个条目,我知道,这很可能不是这样做的最理想方式,因此,如果能找到一种更好的办法,为每个用户设计一个独特的5米。
我刚才考虑使用随机编号,对照电子邮件和第一名称核对数据库,但我很想知道这样做是否更好。
预言!
我正在制作一个表格,以记录所有形式数据,并将其储存在数据库中,我想使用一些表格数据,以形成一种习惯式5用户,防止多个条目,我知道,这很可能不是这样做的最理想方式,因此,如果能找到一种更好的办法,为每个用户设计一个独特的5米。
我刚才考虑使用随机编号,对照电子邮件和第一名称核对数据库,但我很想知道这样做是否更好。
预言!
Wait . 你们想要利用独特的MD5来创建用户id? ......为什么不使用汽车——水泥田? 每当INSERT运行时,就会增加1人,因此总是独一无二。 由于这是一种愤怒,如果你对它进行任何搜查,就会大大加快。
你们可以让我的SQL利用“UNI Request”为你们做工作。 假设你有数据表用户(用户_数据_id、姓名、文本、内容、日期),并想把名称和案文作为图象:
CREATE user_data (
user_data_id INTEGER,
name VARCHAR(50),
text TEXT,
date DATE,
PRIMARY_KEY(user_data_id),
UNIQUE(name,text)
);
我假定你想避免同一人重复入帐。
您在将输入密码(<>strtodown(<>>/code>)和移走空间等信息化之后,或许应当核对输入信息数据库。
除此以外,你还不知道以表格输入数据的人是否在以前这样做了。 由于近距离和网关,或甚至计算机相同(共享计算机),你可以安全地依靠电线。 如果你在这两条战线上 aggressive势,你可能会有一站不住脚的合法使用者,他们可以不使用你的系统。
最好的做法是假设你的数据库重复输入,然后决定与这些条目做些什么。 如果在系统上重新核算,有某些情报可检查它们是否根据行为重复使用。
I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...
<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...
我把我的用心从使用QQL转向MySQL。 它与凯科特合作,现在不工作,因为我已经改变,使用MySQL。 这里的错误信息是:
We have a restaurant table that has lat-long data for each row. We need to write a query that performs a search to find all restaurants within the provided radius e.g. 1 mile, 5 miles etc. We have ...
Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...
Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...
What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...
My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...