Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. The first one is the clients IP and the ones after (maybe more then one) is the proxies IP EDIT: okay I should also say that this is true for transparent proxies but NOT true for anonymous proxies. if HTTP_X_FORWARDED_FOR exists then a proxy is being used but a distorting proxy with give you a random number in HTTP_X_FORWARDED_FOR, but in a highly anonymity proxy you will not see HTTP_X_FORWARDED_FOR or HTTP_VIA
  2. styling problem test page is down!
  3. works fine for me, but i still say add the quotes back in
  4. research time 4 seconds resource google http://www.codewalkers.com/c/a/Database-Code/PHP-CSV-Importer-20/
  5. php breadcrumb
  6. What his saying is IF you have both index.php and index.html, them a search bot may take the contents of both for indexing in search engines, the code basically tell the bot that the page its viewing doesn't exist.. but then again why have a page their at all if its only function is to not exists!
  7. and can you send the file that your reading from, the file set here $settings['logfile']
  8. Humm.. i don't like this solution but with your system being so open i guess it may work //replace images with a prefixed height or width $html = preg_replace('/<img.*?src=(["\']?)(.*?)\1.*?>/', '<img src="\2" height="100px">', $html); the correct solution is to not allow HTML but use BBcode instead
  9. even when you view source ?
  10. humm can you post an example file
  11. When you say resize the post, do you mean resize the image that entered via HTML ?
  12. can you post the index.php file/code (in code tags)
  13. Yeah, really need some more information about the POS system, Dig out the POS manual or a sample xml that works and work by trail and error if you need to.
  14. You could even do this, $ratingData = Rating::OutputRating($_GET['platename']); but I tend not to,
  15. Why not use css overflow: hidden
  16. very close but single quotes don't parse variables $ratingData = Rating::OutputRating('$shoename'); should be $ratingData = Rating::OutputRating($shoename); you could also do $ratingData = Rating::OutputRating("$shoename"); but it hardly seams worth it
  17. only thing i can think of would be "Category Name" in the output <Category Name=""> <Category Name=""/> </Category> try using a static xml and manually change the data
  18. try this <?php $delimiter="\t"; $lines=file($settings['logfile']); foreach($lines as $K => $line) { $lines[$K] = explode($delimiter,$line); } usort($lines, "cmp"); foreach($lines as $K => $line) { list($name,$from,$email,$url,$comment,$added,$isprivate,$reply)= $line; echo "$name,$from,$email,$url,$comment,$added,$isprivate,$reply\n"; } function cmp($a, $b) { return strcmp($a[4], $b[4]); } ?>
  19. yeah the mouse over needed an extra one
  20. it would be something like this (wrote in on the fly .. very untested or proof read, but should give you an idea) <?php $conn = mysql_connect("localhost", "mysql_user", "mysql_password"); if (!mysql_select_db("mydbname")) { echo "Unable to select mydbname: " . mysql_error(); exit; } $sql = "SELECT nobody, sign, word, framed, frame, fire, text, house, flames, signage, burning nobody, spring, seasonal, holiday, season, colored eggs, young, chicks, colorful, occasion, Easter, rabbit FROM sometable"; $result = mysql_query($sql); $data = array(); while ($row = mysql_fetch_assoc($result)) { $data[] = $row; } mysql_free_result($result); $data = array_unique($data); //okay putting the data in a combo box like this is kinda dumb but that what you asked for! echo "<select>"; //okay adding all values from all keys! foreach($data as $d) //keys { foreach($d as $K => $V) //values { echo "<option value=\"$K\">$V</option>"; } } echo "</select>"; ?>
  21. ahh didn't notice the extra quotes try this <?php echo"<td align='center' class='off' onmouseover='this.className=\"$on\"' onmouseout='this.className=\"$off\"'>"; ?>
  22. and the error is ? also i think you mean echo "<a href=\"itemdetails2.php?id=".$content['id']."&shoename=".$content['shoename']."\">"; or echo "<a href=\"itemdetails2.php?id=".$row3[1]."&shoename=".$row3[3]."\">";
  23. would kinda need to see some code, basically your passing a null and it should probably be a string
  24. Just to confirm, does this work? #echo "<table><tr><td>"; while($row = mysql_fetch_array($result)) { $photo = "<a href=http://www.website.com/images/items/" . $row['picture'] . " target=_blank><img src=http://www.website.com/images/items/" . $row['picture'] . " height=20% width=20% border=0></a><br>"; echo $photo; echo "<b>Item #: " . $row[item] . "</b><br>"; echo "<b>" . $row[desc] . "</b><br>"; echo "<b>$" . $row[retail] . ".00</b><br>"; } #echo "</td></tr></table>";
  25. if this is solved, can you click "topic solved" at the bottom please
×
×
  • 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.