Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. try yourself and when you get stuck post what you have..
  2. lol.. to late please click solved! bottom left!
  3. Cheers Andy in which case i would probably do this <form id="Assign_<?php echo $Contact ?>" action="Assign.php" method="post"> <input type="hidden" name="search" value="<?php echo $search; ?>"> <td> <?php if($selected == 'X') { $image = "images/checked.gif"; }else{ $image = "images/unchecked.gif"; } echo "<img src='$image'>"; ?> </td> <td> <input type ="image" name="assign" src="<?php echo $image;?>"> </td> </form>
  4. #1. use code tags. #2. what are the errors ? #3. whats the exact question. ? your get a better responce if you give these! also in my signature theirs a link to how to ask a question
  5. what about <?php $X = $_POST['username']; $Y = Filter($X); if($X != $Y) { echo "Attach detected"; } ?> just something basic
  6. the result would be true or false.. which makes no sense! unless you wish to set the value of assign to true or false! maybe you should re-think the question try this how to ask questions - the smart way
  7. providing it can't be accessed remotely
  8. the result ? results of what ? try {$_POST['search']} <?php echo '<td> <input type ="submit" name="assign" value="'.$_POST['search'].'">'; ?> EDIT: whole thing being <form id="Assign_<?php echo $Contact ?>" action="Assign.php" method="post"> <input type="hidden" name="search" value="<?php echo $search; ?>"> <td> <?php if($selected == 'X') { ?> <img src="images/checked.gif"> <?php }else{ ?> <img src="images/unchecked.gif"> <?php } ?> </td> <?php echo '<td> <input type ="submit" name="assign" value="'.$_POST['search'].'">'; ?> </td> </form>
  9. also The SQL statement should be <?php $qry = "SELECT jos_muse_users.* FROM jos_muse_users AS t1, jos_muse_users AS t2 WHERE t1.username != t2.username AND t1.email != t2.email"; ?> EDIT: Thats for users who have the same username and email in the table more than once.. it will not find duplicate emails if their username is different WIll find user1 user1@emails.com user1 user1@emails.com will NOT find user1 user1@emails.com user2 user1@emails.com will NOT find user1 user1@emails.com user1 user2@emails.com
  10. change <?php while($row = mysql_fetch_assoc($qry)?> to <?php while($row = mysql_fetch_assoc($qry))?>
  11. only via the server.. so not direct from the user.. UNLESS the sessions are stored in the tmp folder resideing in the webshared folder!
  12. this works fine what exactly are you trying to do ? heres how i used it (as part of a download script) <?php if( isset($_GET['DL']) ) { //download }else{ echo "please wait..."; echo "<meta http-equiv='refresh' content='5;{$_SERVER['REQUEST_URI']}?DL=1'>"; } ?>
  13. as i said its hard to say what is classed as an injection.. what type of data are you handling ? really you need to break them up into types.. unless its one area ie login
  14. I know i kinda assumed he did (plus add that in the last post)
  15. External box yes but is the PHP also running on that box ? if so its local to the code itself!
  16. have you tried ip 127.0.0.1? no idea if it will work but worth a shot or the external IP, Remember it could be the router blocking it.. you could ask for a friend to FTP in via IE using the external IP
  17. i have to ask.. you sure your uploading to the correct place etc add die("END"); at the top if that fails check what you uploading and where! EDIT: Digs a hole and hide.. how did i miss that..
  18. try $ftp = ftp_connect($FTPserver, 21, 90) or die ("Can't connect to FTP Server : $FTPserver"); if this fails contact the host to check
  19. simple HTML <?php echo "<meta http-equiv='refresh' content='5;http://mydomain.com/page1.php'>"; ?> change 5 to the number of seconds
  20. OK first <input type="password".... > means display entry as *** 2nd if ($_SESSION['logged']='0') { will SET $_SESSION['logged'] to '0' you need $_SESSION['logged']== '0'; 3rd without seeing the whole script its impossible hard to say exactly what the problem is EDIT: thorpe is too quick for me
  21. can you post some code !
  22. what about! <?php if ($result = mysql_query("SELECT * FROM mms_message_element ORDER BY id ASC")) { if (mysql_num_rows($result)){ while ($row = mysql_fetch_array($getflash)) { print_r($row); echo "<br>"; } } else { echo "no records found"; } } else { echo "Query failed" . mysql_error(); } ?> thats must return something
  23. Leaching...! thorpe should of worked try <? include "global/db.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function MM_CheckFlashVersion(reqVerStr,msg){ with(navigator){ var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1); var isWin = (appVersion.toLowerCase().indexOf("win") != -1); if (!isIE || !isWin){ var flashVer = -1; if (plugins && plugins.length > 0){ var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : ""; desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc; if (desc == "") flashVer = -1; else{ var descArr = desc.split(" "); var tempArrMajor = descArr[2].split("."); var verMajor = tempArrMajor[0]; var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r"); var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0; flashVer = parseFloat(verMajor + "." + verMinor); } } // WebTV has Flash Player 4 or lower -- too low for video else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0; var verArr = reqVerStr.split(","); var reqVer = parseFloat(verArr[0] + "." + verArr[2]); if (flashVer < reqVer){ if (confirm(msg)) window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"; } } } } </script> </head> <body> <?php if ($result = mysql_query("SELECT * FROM mms_message_element ORDER BY id ASC")) { if (mysql_num_rows($result)) { while ($row = mysql_fetch_array($getflash)) { echo $row['flv_location']." - <br>"; echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"240\" height=\"180\" id=\"FLVPlayer\"> <param name=\"movie\" value=\"FLVPlayer_Progressive.swf\" /> <param name=\"salign\" value=\"lt\" /> <param name=\"quality\" value=\"high\" /> <param name=\"scale\" value=\"noscale\" /> <param name=\"FlashVars\" value=\"&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName={$row['flv_location']}&autoPlay=false&autoRewind=false\" /> <embed src=\"FLVPlayer_Progressive.swf\" flashvars=\"&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName={$row['flv_location']}&autoPlay=false&autoRewind=false\" quality=\"high\" scale=\"noscale\" width=\"240\" height=\"180\" name=\"FLVPlayer\" salign=\"LT\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> </object>"; } } } ?> </body> </html>
  24. OK this is for spaces, linebreaks, tabs, etc (white spaces) letters, numbers, dots, commas, dashes <?php $input = preg_replace("/[^.\s,a-z0-9-]/im", "", $input); ?>
  25. could it be a caching issue ? you could try script.php?rnd=54632627
×
×
  • 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.