so confused.
Posted: Thu Jul 31, 2003 7:08 pm
alright I am trying to make amessaging system for users.
I am gonna be using mysql to hold the messages for each user.
Now when you send a message I need it to somehow know who sent it.. so I tried adding set $_POST[ID] - (cookies, after you login) but it made errors.. I was gonna call that so it would know who sent the message...
I could use help!
cookies:
Please i'm not even sure if mysql idea is good... :/
I am gonna be using mysql to hold the messages for each user.
Now when you send a message I need it to somehow know who sent it.. so I tried adding set $_POST[ID] - (cookies, after you login) but it made errors.. I was gonna call that so it would know who sent the message...
I could use help!
cookies:
Please i'm not even sure if mysql idea is good... :/
Code: Select all
<?php
#cookies#
if ($num != 0) {
$cookie_name = "auth";
$cookie_id = "'$_POST[ID]'";
$cookie_value = "ok";
$cookie_expire = "0";
$cookie_domain = "slices.net";
setcookie($cookie_name, $cookie_value, $cookie_expire, "/" ,
$cookie_domain, $cookie_id 0);
#
?>