Posted by Steve on 09/14/05 12:27
> $result = mysql_query("INSERT INTO session SET ssid='$season',ip='$rip'",$connect);
Andy's explanation is certainly correct: the reason you only get one
record if the ssid is hard-coded is probably because you have a unique
key constraint in the table so the second INSERT overwrites the first.
This doesn't happen if you generate the ssid because it is unique each
time. You must be calling the register function twice.
---
Steve
[Back to original message]
|