Jump to content

sasa

Staff Alumni
  • Posts

    2,804
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sasa

  1. with JS try <img src="C:\Documents and Settings\All Users.WINDOWS\Documents\My Pictures\Sample Pictures\Sunset.jpg" width="400" height="300" onclick="this.height=400-this.height;this.width=500-this.width">
  2. try <?php $a = '<html lang="en"><head><title>Betfair Lite - Markets</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta http-equiv="expires" content="Thu, 16 Mar 2000 11:00:00 GMT"/><meta http-equiv="pragma" content="no-cache"/><style type="text/css">body,td,p, span{font-family: arial,verdana, tahoma;color: rgb(0,0,0);}div.backgroundwhite {background-color: white;padding:7px;border:1px black solid;}div.backgroundback {background-color: #CCCCFF;padding:7px;border:1px black solid;}div.backgroundlay {background-color: #FFFFCC;padding:7px;border:1px black solid;}span.red {color: #ff0000;}span.green {color: #4AA02C;}a:link { color: #003399;}a:visited { color: #003399;}a:active { color: #003399;}table.standard {border-width: 1px;border-spacing: 3px;border-style: outset;border-color: white;border-collapse: separate;background-color: white;width:100%}table.standard td,th {border-width: 1px;padding: 2px;border-style: inset;border-color: #CCCCCC;background-color: white;-moz-border-radius: ;}table.standard td.back,th.back {background-color: #CCCCFF;text-align: center;}table.standard td.lay,th.lay {background-color: #FFFFCC;text-align: center;}form {margin: 0px;padding: 0px;}}</style></head><body><div><a id="top"></a><img src=\'images/betfair_tiny.gif\' alt=\' Betfair Logo\'/><br/><a href="Default.do?s=000109x1z" accesskey="1">Home</a> | <strong><a href="Events.do?s=000109x1z" accesskey="2">Markets</a></strong> | <a href="Mybets.do?s=000109x1z" accesskey="3">My Bets</a> | <a href="Results.do?s=000109x1z" accesskey="4">Results</a> | <a href="Login.do?s=00010920777112x1z-redirectMarket" accesskey="5">Login</a> | <a href="Market.do?s=00010920777112x1z" accesskey="6">Refresh</a><hr/><a href="Events.do?s=000109x1z">Markets</a> > <a href=\'Events.do?s=0001096x1z\'>Boxing</a> > <a href=\'Events.do?s=00010910838843x1z\'>April Bouts</a> > <a href=\'Events.do?s=00010916938687x1z\'>Bouts 19 April</a><hr/><a href="#marketinfo">Market Information</a> <a href="Login.do?s=00010920777112x1z-redirectMarket"> <strong>Log in to bet</strong></a><hr/><strong>Hopkins v Calzaghe</strong><br/> <table class="standard" summary="The market view"><tr><th abbr="Selections"><strong>Selections</strong> (3)</th><th abbr="Back" class="back"><strong>Back</strong> (105.1%)</th><th abbr="Lay" class="lay"><strong>Lay</strong> (92.3%)<br/></th></tr><tr><td>Bernard Hopkins </td><td class="back"> <strong>3.3</strong> ($98)</td><td class="lay"> <strong>4.3</strong> ($88)<br/></td></tr><tr><td>Joe Calzaghe </td><td class="back"> <strong>1.42</strong> ($70)</td><td class="lay"> <strong>1.51</strong> ($199)<br/></td></tr><tr><td>Draw </td><td class="back"> <strong>23.0</strong> ($99)</td><td class="lay"> <strong>36.0</strong> ($4)<br/></td></tr></table><strong>Total Matched</strong>: $1,863.45<br/><a name="marketinfo"></a><strong>Market Information</strong>: 20 Apr - 2:00 BST <b>Market Information</b><br> Boxing. Who will win this fight? This market will be turned in play at the start of the first round with unmatched bets cancelled, thereafter unmatched bets will not be cancelled by Betfair at any time. For further information please see our <a href=http://content.betfair.com/aboutus/content.asp?sWhichKey=Rules%20and%20Regulations#undefined.do style=color:0163ad; text-decoration: underline; target=_blank>Rules & Regs.</a><br><br><b>Customers should be aware that:<br><br><li>Transmissions described as “live” by some broadcasters may actually be delayed</li><br><li>The extent of any such delay may vary between customers, depending on the set-up through which they are receiving pictures or data.</li></b><br/><strong>Commission</strong>: 5.0% (Minus your discount)<br/><br/><a href="#top">Top</a><hr/>© 2007 The Sporting Exchange Limited. All rights reserved. <br><a href="http://www.gamcare.org.uk/"><img border=0 src="/images/eighteenplus.gif" alt="18+"><img border=0 src="/images/gamcarelogo.gif" alt="Gamcare"></a><br>Licensed and regulated by the <a href="http://www.gamblingcommission.gov.uk">Gambling Commission (UK)</a></div></body></html>'; preg_match('/<th[^>]*>.*<\/th[^>]*>/',$a,$b); $th_row = $b[0]; $th_row = strip_tags($b[0],'<th>'); preg_match_all('/>([^<]+)</',$th_row, $b); $th_row = $b[0]; preg_match('/<td[^>]*>.*<\/td>/',$a,$b); $data = strip_tags($b[0],'<td>'); preg_match_all('/>([^<]+)</',$data, $c); $data = array_chunk($c[1],count($th_row)); print_r($th_row); print_r($data); ?>
  3. try <?php $a = 'blah m <img >blah<a ><img blah src="aaaa" />sasa <img src=\'ddd"</a>'; preg_match('/<img[^>]+src=[\'"]([^\'"]*)/',$a,$b); print_r($b); ?>
  4. try SELECT * FROM `access` WHERE `size`+ 0 > 500 ORDER BY `ID` ASC LIMIT 0 , 100;
  5. try CREATE TABLE `inventory` ( `id` int NOT NULL PRIMARY KEY , `full_name` varchar( 100 ) NOT NULL default '', `phone_number` varchar( 20 ) NOT NULL default '', `address` text NOT NULL default '', `short_info` varchar( 150 ) NOT NULL default '', `long_info` text NOT NULL default '', `new_date` date , `user` varchar( 20 ) NOT NULL default '', `other_info` text NOT NULL default '' )
  6. try SELECT DISTINCT(IF(`Sender`='4',`Receiver`,`Sender`)) AS contacts FROM `msgs` WHERE `Sender`='4' or `Receiver`='4'
  7. mod is function in MySQL use $query = "SELECT * FROM `products` WHERE `mod` = '$icemachines' LIMIT 1";
  8. sasa

    sql

    SELECT country_name, population / area FROM table_name
  9. change line $myarray[]=substr($s,$pos1+$L1,$pos2); to $myarray[]= str_replace(',', '', substr($s,$pos1+$L1,$pos2));
  10. try <?php $a = '2008-01-21 03:14:47'; echo $t = date('F d<\sup>S</\sup>, Y.', strtotime($a)); ?>
  11. you look closest match define distanc pleas
  12. try <?php $a = 'http://www.vgboxart.com/boxes/PS3/7972-v2-orig.jpg&imgrefurl=http://www.vgboxart.com/view/7972/need.for.speed.pro.street/&start=1&h=822&w=500&sz=280&tbnid=MMAIKuHUlaBNnM:&tbnh=144&tbnw=88&hl=en&prev=/images%3Fq%3Dneed-for-speed-pro-street-box%26gbv%3D2%26svnum%3D10%26hl%3Den%26sa%3DG%26ie%3DUTF-8><img src=http://tbn0.google.com/images?q=tbn:MMAIKuHUlaBNnM:http://www.vgboxart.com/boxes/PS3/7972-v2-orig.jpg width=88 height=144></a></td><td align=center valign=bottom width=23% style="padding-top:1px"><a href=/imgres?imgurl=http://www.vgboxart.com/boxes/PS3/7972-v2.jpg&imgrefurl=http://www.vgboxart.com/view/7972/need.for.speed.pro.street/&start=2&h=534&w=320&sz=159&tbnid=nSyxMaxSQ1bCGM:&tbnh=132&tbnw=79&hl=en&prev=/images%3Fq%3Dneed-for-speed-pro-street-box%26gbv%3D2%26svnum%3D10%26hl%3Den%26sa%3DG%26ie%3DUTF-8><img src=http://tbn0.google.com/images?q=tbn:nSyxMaxSQ1bCGM:http://www.vgboxart.com/boxes/PS3/7972-v2.jpg width=79 height=132></a></td><td align=center valign=bottom width=23% style="padding-top:1px"><a href=/imgres?imgurl=http://www.vgboxart.com/boxes/PS3/7972-orig.jpg&imgrefurl=http://www.vgboxart.com/view/7972/need.for.speed.pro.street/&start=3&h=1022&w=1000&sz=266&tbnid=3PYZ7MXdvCK95M:&tbnh=150&tbnw=147&hl=en&prev=/images%3Fq%3Dneed-for-speed-pro-street-box%26gbv%3D2%26svnum%3D10%26hl%3Den%26sa%3DG%26ie%3DUTF-8><img src=http://tbn0.google.com/images?q=tbn:3PYZ7MXdvCK95M:http://www.vgboxart.com/boxes/PS3/7972-orig.jpg'; preg_match_all('/http:\/\/[^=]*\.jpg/',$a,$b); print_r($b); ?>
  13. i don't have hole file but i'm 90% shure that it is line 48
  14. 1st try to echo $query before query database 2nd try to change line mysql_query($query); to mysql_query($query) or die(mysql_error());
  15. try <form method="post"....> <select name="example[]" multiple="multiple"> <option value=1>one</option> <option value=2>two</option> </select> </form> and on php page use print_r($_POST['example']);
  16. line 16: $Buyer->buyer_id= isset($_SESSION['buyer_id']) ? $_SESSION['buyer_id'] : ''; line 19: $saveSearchCount=$Buyer->countSaveSearch(isset($_SESSION['buyer_id']) ? $_SESSION['buyer_id'] : ''); line 20: $saveListingsCount=$Buyer->saveListingsCount(isset($_SESSION['buyer_id']) ? $_SESSION['buyer_id'] : '');
  17. line 25 if ($_SESSION['buyer_id']) { change to if (isset($_SESSION['buyer_id']) and $_SESSION['buyer_id']) { etc.
  18. try <?php $a = file_get_contents('http://www.spreadfirefox.com/'); preg_match('/<span id="download-count"[^>]*>[^0-9]*([0-9]+)/',$a,$b); echo $b[1]; ?>
  19. first part of notices in files session.php and func.php can we see this
  20. try <?php $out = array(); mysql_connect('localhost','root'); mysql_select_db('test'); $sql = 'SELECT category, parent_cat FROM test'; $r = mysql_query($sql); while($row = mysql_fetch_array($r)){ $c = $row['category']; $p = $row['parent_cat']; if (!isset($out[$p][$c])) $out[$p][$c] = 0; $out[$p][$c]++; } foreach ($out as $p => $v){ $u = array_sum($v); echo "$p ($u)<br />\n"; foreach ($v as $c => $x) echo " $c ($x)<br />\n"; } ?>
  21. Notice: Use of undefined constant... in line 42 in this line change [type] to ['type'] for Notice: Undefined index:... We must see some relevant code lines (20 - 50)
  22. $String = "This is a test" ; $out = "" ; $out .= $String[0] ; $out .= $String[1] ; $out .= $String[2] ; $out .= $String[3] ; echo $out;
×
×
  • 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.