Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. weird thing is that also failed, i'll review my code.. and see if i can make a simple example to post.
  2. Thanx for the suggection but no affect.. as i said its weird..
  3. erm.. try turning cache off in the JS file var enableCache = true; to var enableCache = false;
  4. change <?php $weapons = mysql_query("SELECT COUNT(id) AS total FROM pequipment WHERE userid='$playerinfo[id]' AND type='weapon' GROUP BY name"); ?> to <?php $weapons = mysql_query("SELECT *, COUNT(id) AS total FROM pequipment WHERE userid='$playerinfo[id]' AND type='weapon' GROUP BY name"); ?> Note the *, OR <?php $weapons = mysql_query("SELECT COUNT(id) AS total, name, iclass FROM pequipment WHERE userid='$playerinfo[id]' AND type='weapon' GROUP BY name"); ?> will be a little quicker
  5. That work ?
  6. Each item should have a unique referance number normally called ID so it will relate to the unique field in your equipment table
  7. madtechie3000@yahoo.co.uk
  8. click the speach bubble by my name (below my avatar(the monkey)) or click here http://www.phpfreaks.com/forums/index.php?action=pm;sa=send;u=47001 or email me
  9. First change $searchtype = addslashes($_POST['searchtype']); $searchterm = addslashes($_POST['searchterm']); to $searchtype = $_POST['searchtype']; $searchterm = $_POST['searchterm']; echo "searchtype = $searchtype<BR>" echo "searchterm = $searchterm <BR>" and try that see what the return page echos
  10. Thats fine
  11. could you post the compleate code..
  12. Ok, a little weird this one. i have a page that seams to get stuck in the cache, Now i thought adding header("Cache-Control: no-cache") would of worked... basically it shows the first bob.jpg, then i change a few things and it stays the same, i then load the file from its true path and the changes where their but not on the one below! <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past //Creates bob.jpg //kinda long so didn't post //done creating $filename = "bob.jpg"; echo "<EMBED src='$filename' width='100%' height='100%' href='$filename'></EMBED>"; ?> i hope that makes sence any ideas ?
  13. ~Sighs~ maybe you need to post all your code as that didn't help.. and maybe a DB schemer.
  14. please use the [ Code] tag also change <?php $xyzName = trim(addslashes(strip_tags($_GET["xyz"]))); ?> to <?php $xyzName = $_GET["xyz"]; ?>
  15. try <?php set_time_limit(3600); ?>
  16. whats $searchtype $searchterm set to ?
  17. Sorry dude, your on your own, i have tried
  18. little weird how test.php failed to finish loading the whole page!!
  19. we will try to help you with the code or how to solve a problem but you need to build the concept and have started the process of developing the system first.
  20. that will work.. i still don't know what the problem is .. or what your goal is..
  21. Not exactly, try <?php $x = $comics; $numimage = ""; for($n=0;$n<strlen($x);$n++) { $numimage .= "<img src='".$x{$n}.".jpg' />"; } echo "There are a total of $numimage comics in the database!"; ?> thats should work
  22. i have no idea what your trying to do.. did you skip a chapter as $name = mysql_result($result,$i,"name"); $age = mysql_result($result,$i,"age"); $state = mysql_result($result,$i,"state"); $sponsor = mysql_result($result,$i,"sponsor"); isn't going to work..
  23. suttercain you have " to many error here try this $x = the number and have images 0.jpg to 9.jpg in the same folder. <?php $x = "1234"; for($n=0;$n<strlen($x);$n++) { echo "<img src='".$x{$n}.".jpg' />"; } ?>
  24. can't echo an image but a path to one ie echo "<img src='1.jpg' />" your also need to break the number into single numbers
  25. does your new Web Host provider support php ? also check the premissions
×
×
  • 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.