i not know start from. bottom line, have website , inside there features private messages (chat)
here send short messages via chat automatically new members sign up.
this idea arose when tried remove id username registered. apparently after new members, coincidentally same id user should ever delete id, personal messages belonging else appeared on account. think still opportunity exploited.
however, may not able send messages automatically every id different, example 1, 2, 3 , on.
so, there solution project?
sending message user when sign shouldn't complicated, developed similar site. "id" value of users database should auto increment, id's go 1, 2, 3, 4 , on.
i store messages in pms database senderid, receiverid, title, body , time. when users sign , new account inserted database, run following query:
mysql_query("insert pms (senderid, receiveid, title, body, time) values('1','$fu->id','example title','example body' ,'".$now."')");
you need find user before sending message if using method. easiest way id of user signs run query find user username submitted through registration form, can select id , send them message.
you need ensure running insert message query after account created.
this method quickest , effective, although may have take @ database structure , alter work easier method.
Comments
Post a Comment