Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by fugix

  1. to make sure that $xml is an array, yes you can do that
  2. in your failed address function, change to function FailedAddress() { return $this->failedAddress; //remove the $ } you will also need to change the messageText function as well function MessageText() { return $this->messageText; // remove the $ }
  3. you need to create an instance of your class first, you have not defined the variable that you are trying to use <?php include ('PopmongerClass.php'); $Popmonger = new Popmonger(); echo $Popmonger->FailedAddress(); echo $Popmonger->MessageText(); ?>
  4. function headerReturnImages() { $query = mysql_query("SELECT image_image FROM reviews ORDER BY image_id ASC"); while ($fetch = mysql_fetch_array($query)) { if($fetch[0]) { echo'<img src="images/'; echo $fetch["image_image"]; echo '" alt="" class="active" />'; } else { echo'<img src="images/'; echo $fetch["image_image"]; echo '" alt="" />'; } } }
  5. absolutely, if you need help with this, please post you code
  6. the reason why $_SERVER['PHP_SELF'] poses such an issue as far as injection is concerned, is because it incorporates $_SERVER['PATH_INFO'] which can be tampered with by users. To my knowledge, $_SERVER['SCRIPT_NAME'] does not incorporate PATH_INFO, however I would check a reference before being confident
  7. wow yeah, didn't even notice that, dumb of me...those variables are stored in the $_SERVER predefined array. Glad you found your error
  8. before using it in your header, try to echo it to validate that it is a legitimate url
  9. mockery is not needed.. sorry i brought the issue up
  10. why cant you call the arrays in the functions themselves?
  11. It was changed to something a little offensive. Normally i wouldn't even care
  12. first thing that i notice is you are trying to concatenate 2 queries together, cannot do this
  13. im not sure who changed my signature, but I do not find it funny and consider it an invasion of my privacy. Obviously it was an admin or mod, please do not do this again
  14. so you're saying that when you click the submit button, it doesn't refresh the screen at all? or just the actual page that your tables are on?
  15. huh? can you be clearer with your explanation
  16. what exactly is your problem? and you need to use = not == to assign a value to a variable. if(($descText=='') || ($descText==' ') || ($descText == null)){ $descText = $altText; }
  17. there is a button in the bottom left hand of this page.
  18. you will need to move your images into your server directory
  19. PFM is right, try this $increment_count = "UPDATE $this->tablename SET count = count + 1 Where confirmcode = '$referid'";
  20. try this <?php /** * @author ohyeah * @copyright 2011 */ $dir = 'C:/wamp/uploads/'; $files = scandir($dir); foreach($files as $filedownload){ if(substr($filedownload, 0, 1) != '.'){ $file_size = round((filesize("$dir/$filedownload")) / 1024) . "kb"; $filedownload = urlencode($filedownload); echo "\t<tr> \t\t<td><a href=\"{$dir}{$filedownload}\">$filedownload</a></td> \t\t<td>$file_size</td> \t</tr>\n"; } } ?>
  • 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.