Jump to content

BlueSkyIS

Members
  • Posts

    4,268
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://reallynotfakenews.com

Profile Information

  • Gender
    Not Telling
  • Interests
    reallynotfakenews.com

BlueSkyIS's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. reallynotfakenews.com

  2. Okay, it must be the server adding slashes to GET variables due to magic_quotes being turned on. You'll need to either continue using stripslashes() or turn off magic_quotes via php.ini. Or account for both possibilities by checking for magic_quotes before using stripslashes(): if (get_magic_quotes_gpc()) { $item = stripslashes($item); }
  3. IF the slashes are in your database, there is no way for us to know how they got there unless you explain how the data is entered. Are the slashes in your data? IF there are slashes in your data, you probably don't want them there, so fixing your data (and fixing whatever is adding slashes) seems logical to me. The alternative is to leave everything malfunctioning and write additional code to get around the problem. always.
  4. I suspect the apostrophes are in your data. If so, you'll need to either fix your data (best idea), or use strip_slashes() on the values to remove the slash in front of special characters.
  5. http://www.phpfreaks.com/forums/php-coding-help/header-errors-read-here-before-posting-them/
  6. http://www.w3schools.com/php/php_forms.asp
  7. the code is obfuscated for one or two reasons: 1. to slightly prevent modification of the code and/or 2. it is malicious. as long as you remove the eval() from around the code, it will not execute. just like cigardude said.
  8. haha. my bad. try this: // printing table rows while($row = mysql_fetch_assoc($result)) { echo "<tr>"; echo "<td>".$row['alliance']."</td>\n"; echo "<td>".$row['region']."</td>\n"; echo "<td>".$row['coordx'].",".$row['coordy']."</td>\n"; echo "</tr>\n"; }
  9. // printing table rows while($row = mysql_fetch_assoc($result)) { foreach($row as $Cell) { echo "<tr>"; echo "<td>".$Cell['alliance']."</td>\n"; echo "<td>".$Cell['region']."</td>\n"; echo "<td>".$Cell['coordx'].",".$Cell['coordy']."</td>\n"; echo "</tr>\n"; } }
  10. ANY output to browser before starting a session will cause that error. that includes HTML.
  11. a couple things: there is no TR open/close for the header row. your foreach needs curly brackets {} to surround the multiple lines of code executed within.
  12. /home/~unn_s003539/public_html/Sold/ is not the same as /var/www/vhosts/numyspace.co.uk/web_users/home/~unn_s003539/public_html/Sold/ $target is not a valid path, thus Unable to move '/tmp/phpUWYU51' to '/home/~unn_s003539/public_html/Sold/uploadsPC45 close up .jpg'
  13. pseudo-query (after validating/escaping get values): SELECT id, alliance, region, ABS(sqrt(($_GET['mex'] - coordx) ^ 2 + ($_GET['mey'] - coordy) ^ 2)) AS distance FROM some_table ORDER BY distance you'll probably want to use an absolute value, as negative distances will be encountered.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.