Rev 193 | Rev 267 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 193 | Rev 266 | ||
|---|---|---|---|
| Line 110... | Line 110... | ||
| 110 | $user = mysql_query('SELECT `location` FROM `visitor_map` WHERE `location` = \'' . $userinfo['location'] . '\''); |
110 | $user = mysql_query('SELECT `location` FROM `visitor_map` WHERE `location` = \'' . $userinfo['location'] . '\''); |
| 111 | // If it does NOT return a value, and the user's IP could indeed be matched... |
111 | // If it does NOT return a value, and the user's IP could indeed be matched... |
| 112 | // (This makes sure that we have no duplicate rows (which would be a waste) and can determine the visitor's location, respectively) |
112 | // (This makes sure that we have no duplicate rows (which would be a waste) and can determine the visitor's location, respectively) |
| 113 | // ...We insert the values returned by our function into the database, escaping any possible dangerous input |
113 | // ...We insert the values returned by our function into the database, escaping any possible dangerous input |
| 114 | if(!mysql_fetch_row($user) && $userinfo) |
114 | if(!mysql_fetch_row($user) && $userinfo) |
| - | 115 | mysql_query($msql); |
|
| 115 |
|
116 | // or die(mysql_error()); |
| 116 | 117 | ||
| 117 | } |
118 | } |
| 118 | 119 | ||
| 119 | 120 | ||
| 120 | 121 | ||