Jump to content

schilly

Members
  • Posts

    870
  • Joined

  • Last visited

    Never

Everything posted by schilly

  1. Are you getting any kind of error? Echo the sql statement before you do the query to make sure it looks right. change die to die(mysql_error()); to see if you get any mysql error.
  2. schilly

    Ordering

    You could probably javascript it pretty easy.
  3. That would be assuming static IPs. It not (DHCP) then you could filter based on subnet which would be a little broader.
  4. Use nested while/for loops. $i = 0; while($arr = $array[$i]){ $j = 0; while($nextarr = $arr[$j]){ //operate on value here $j++; } $i++; }
  5. 66 views and no response. no suggestions at all?
  6. It suppresses error messages if I recall right.
  7. looks fine as long as the password in the db is md5 hashed as well.
  8. Hi Everyone, Hoping you can help. My CSS skills aren't very good yet. More of a php guy. I'm having problems implementing the suckerfish dropdowns. I've followed the examples exactly and gone over them numerous times but I'm only getting the first level of two levels to display in Firefox/Safari and nothing displays in IE. CSS Code /* extended menu css */ #mainlevel-top, #mainlevel-top ul { padding: 0; margin: 0; list-style: none; line-height: 1; /*border: solid #ebb220;*/ background: #003399; font-weight: bold; /* border-width: 1px; */ width: 700px; float: left; } #mainlevel-top a { display: block; color: #ebb220; background: #003399; font-weight: bold; width: auto; text-decoration: none; padding: 0; } #mainlevel-top a:hover { display: block; border-width: 1px; width: auto; text-decoration: none; padding: 0; color: #003399; background: #ebb220; } #mainlevel-top li { list-style: none; width: 80px; float: left; text-align: center; padding: 0px; font-size: 11px; /*margin-left: 5px;*/ /*margin-right: 5px;*/ line-height: 21px; white-space: nowrap; /*border-right: 1px solid #ebb220;*/ } #mainlevel-top li ul { list-style: none; position: absolute; width: auto; left: -999em; height: auto; /*margin-left: 5px;*/ /*margin-right: 5px;*/ background: #003399; border-width: 0.25em; margin: 0; font-weight: normal; } #mainlevel-top li ul ul { margin: -1em 0 0 10em; } #mainlevel-top li:hover ul ul, #mainlevel-top li.sfhover ul ul { left: -999em; } #mainlevel-top li:hover ul, #mainlevel-top li li:hover ul, #mainlevel-top li.sfhover ul, #mainlevel-top li li.sfhover ul { left: auto; background: #ebb220; color: #003399; border: 1px solid #003399; width: 80px; } HTML Output w/ Javascript: //in head tag <script type="text/javascript"><!--//--><![CDATA[//><!-- sfHover = function() { var sfEls = document.getElementById("mainlevel-top").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); //--><!]]></script> //in body <ul id="mainlevel-top"> <li>Member Lists <ul > <li>Alumni</li> <li>Committee</li> <li>Teams <ul > <li>94/95</li> </ul> </li> </ul> </li> </ul> I've shortened down the ul menu code. Any help is greatly appreciated. Let me know if you need any additional info. thanks.
  9. Try $Change = mysql_query("UPDATE messages SET Staff='0' WHERE Staff='$_SESSION['Current_User']' AND Sender='$ID' AND MessageID='$row['MessageID']'") Or die(mysql_error()); If you haven't done any variable validation you may get errors as well.
  10. you might need to define white as a transparent colour for that image. http://ca3.php.net/manual/en/function.imagecolortransparent.php not positive though.
  11. I'm pretty sure you can but my GD experience hasn't been too extensive other than creating thumbs. You probably want to create a new image resource and create another image resource from the source image. Then use one of the imagecopy (http://ca.php.net/manual/en/function.imagecopymerge.php) functions to overlay. I'm not sure about the blending part thought. It's probably a little tricky.
  12. Well if it's working for you then you know it works. It could be a browser/OS issue. Do you have the resources to reproduce the environment? Or put debug statements in and have it echo out then have the client sent you what it says.
  13. That's standard info. How do you know the server is on though? What do you do with the IP/Port? Ping it?
  14. are they able to upload a different file? I've had upload problems be file specific.
  15. Couple things I noticed right away: change $_REQUEST['submit'] to $_POST['submit'] as in your form tag you have method='post' also, none of those variables in your INSERT statement are defined so it will not input any data. You will need to do some like $team = $_POST['team']; $species = $_POST['species']; ... etc. Change that and let us know how it goes. Also echo your INSERT statement so you can verify the SQL string before it gets inserted into the db.
  16. Maybe I don't understand what you're trying to do but why are you using Javascript? $url='http://www.esnips.com/nsdoc/'. $file .'?id=' . time();
  17. Is that PHP time() or SQL time()? Can't remember if they are the same. If it's PHP just do: <?php // workout Time $datetime = $row["time"]; $orgdate = date("F j, Y", $datetime); echo $orgdate; Not sure why you used strtotime when the time column in the db is an int.
  18. put it in a separate file, include the file in the page you want to use it in then just call: $array = subdirectory_array($dir); where $dir would be your original directory variable. <?php //This code creates array of a directory's subdirectories, without the inclusion of files names, and is not recursive function subdirectory_arrary($directory){ $dh = opendir($directory); $dh_array = array(); while (($file = readdir($dh)) !== false) { if($file != "." && $file != "..") { if ((substr($file, -4, -3) == ".") OR (substr($file, 0, 1) == ".")){ } else { array_push($dh_array, $file);} } } return $dh_array; } ?> Hope that helps.
  19. they see the return link but doesn't paypal send some kind of confirmation variable that you can validate against?
  20. How do they skip payment? Can't you just verify the response from paypal on the return page to make sure they paid?
  21. Looks like it fixed the problem. No spam in over a day now. Thanks everyone.
  22. if you echo the query string it is correct as well?
×
×
  • 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.