php - Is there any way to retrieve form data sent to the server that didn't get stored in the database? -
i have problem online study i'm conducting, structured multi-page form. processing file sends data each page database , assigns unique id based on user ip addresses. subsequent pages use separate processing files , retrieve id first table matching ip address unique id, using php code:
$result = mysql_query("select * $table0 ip='$ipstr'"); $row = mysql_fetch_array( $result ); $id = $row['id']; i got group of students survey in campus computer lab, little did realise, computers on 1 ip address. consequently, whole lot of valuable data did not stored database.
while i've learned important lesson campus networking , embarrassing implications of neglecting consider possibility of shared ip addresses in code, thought should ask if there way retrieve data form submits weren't inserted database. ideas?
as of cannot lost. in future can use logs. can retrieve data if create logs form submitted data. can check apache logs each submitted form data , put log sql results if successful not need worry if query failed can read data logs.
Comments
Post a Comment