Jump to content

tetecko81sk

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

tetecko81sk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. can somebody tell me how to rip page in html by php script (or js)? i only need show table from page but page is variable and changing every week. stable is only html tag before table and after table. source : http://www.zsfz.sk/tabulky.php i only need red coloured text. it is football (soccer) score table ??? ??? ??? ??? THANKS A LOT! [color=blue]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> ... </div><!-- levypanelobal /--> <div id="hlavnipanelobal">[/color] [color=red]<div id="obsah_vnutro"> <P class=nadpist align=center>Aktuálna tabuľka - III. liga</P> <TABLE border=0 cellPadding=3 cellSpacing=1 width="98%"> <TR class=tableh> <TD align=middle noWrap>#</TD> <TD noWrap>Klub</TD> <TD align=middle noWrap>Z</TD> <TD align=middle noWrap>V</TD> <TD align=middle noWrap>R</TD> <TD align=middle noWrap>P</TD> <TD align=middle colSpan=3 noWrap>Skóre</TD> <TD align=middle noWrap>Body</TD> <TD align=middle noWrap>+ Body</TD></TR> ... </TABLE> <br style="clear: both" /> </div> [/color] [color=blue] <br clear=both /> </div><!-- hlavnipanelobal /--> .... </html>[/color]
  2. can help me somebody? i am using db stored in csv file (ponuka.csv) and i want to display lines (arrays) by key (words in first row). i wrote code written under this text but every time i want to diplay data it display only first row data correctly others are wrong HELP, PLEASE! PONUKA.CSV: row descriptions -> Keys;Name;Description;1;2;3;4;5;6;Category bcap001;1aaa;aaaa;50;a;a;a;a;a;a;24 bcap002;2bbb;bbb;150;n;n;n;n;n;a;24 bcap003;3ccc;ccc;140;n;n;n;n;n;a;24 SCRIPT: $file_handle = fopen("ponuka.csv", "r"); session_start(); session_name("hiphop_eShop_kosice"); if ($_SESSION["kosik"]){ $produkty = array_keys($_SESSION["kosik"]); $pocet=count($produkty); echo ' <table border=0 width=600> <form action="index.php?cat=4" method="post" > <tr class="pmenu"> <th width=70>Nahlad:</th><th width=260>Názov:</th><th width=100>Cena:</th><th width=50>Kusov:</th><th width=100>Celkom:</th></tr>'; $sumac=0; for ($i=0; $i <= $pocet; $i++){ $produkt=$produkty[$i]; $kusov = $_SESSION["kosik"][$produkty[$i]]; $riadok = fgetcsv($file_handle, 512, ";"); if ($riadok[0] = $produkt AND $kusov>0){ echo ' if ($riadok[4]=="a"){ $img[4]="tn_".$riadok[0]."_1.jpg";$riadok[4]=$riadok[0]."_1.jpg"; } else { $riadok[4]="tn_nopict.png"; $img[4]="tn_nopict.png"; } if (strlen($riadok[2])>35){$riadok[2]=substr($riadok[2],0,30)."...";} $suma=($riadok[3]*$kusov); echo ' <tr class="'.$pzoznam.'"> <td class="ponuka1" rowspan=2> <a href="index.php?cat='.$riadok[10].'&kod='.$riadok[0].'"> <img src="images/'.$img[4].'" width=50 border=0 /></a></td> <td class="ponuka2"> <a href="index.php?cat='.$riadok[10].'&kod='.$riadok[0].'"> <b>'.$riadok[1].'</b></a></td> <td class="ponuka4" rowspan=2>'.$riadok[3].' Sk</td> <td class="ponuka4" rowspan=2>'.$kusov.' ks</td> <td class="ponuka4" rowspan=2>'.$suma.' Sk</td></tr> <tr> <td class="ponuka2" height="30">'.$riadok[2].'</td></tr>'; $sumac=$suma+$sumac; } } echo '<tr><td colspan=5><hr color=#CC0000 /></td></tr>'; echo '<tr><td colspan=4 class="ponuka4"><b>Suma celkom:</b></td><td class="ponuka4"><b>'.$sumac.' Sk</b></td></tr>'; echo '</form></table><br /><br />'; fclose($file_handle); } else { echo "<b>Košík je prázdny!</b>"; }
  3. it`s not usefull,, because page is written in php and only i need is that tale with football (soccer) scores
  4. my page will be on other site but i want to display table from this page: http://www.zsfz.sk/tabulky.php it doesn`t matter if somebody broke up my code i tried to use fopen() and readfile() but i don`t know how to delete lines before and after string
  5. Does somebody know how to get for example table from url which is viewable only in html? example: what i need is red color, but <div id="obsah_vnutro"> is not important. the table is important. the html source is variable. thanks a lot! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> ... </div><!-- levypanelobal /--> <div id="hlavnipanelobal"> <div id="obsah_vnutro"> <P class=nadpist align=center>Aktuálna tabuľka - III. liga</P> <TABLE border=0 cellPadding=3 cellSpacing=1 width="98%"> <TR class=tableh> <TD align=middle noWrap>#</TD> <TD noWrap>Klub</TD> <TD align=middle noWrap>Z</TD> <TD align=middle noWrap>V</TD> <TD align=middle noWrap>R</TD> <TD align=middle noWrap>P</TD> <TD align=middle colSpan=3 noWrap>Skóre</TD> <TD align=middle noWrap>Body</TD> <TD align=middle noWrap>+ Body</TD></TR> ... </TABLE> <br style="clear: both" /> </div> <br clear=both /> </div><!-- hlavnipanelobal /--> .... </html>
  6. Has got someone working script/flash file for videoconference (1to1 conference or 1toX)? Can U help me?
  7. [quote author=fenway link=topic=109092.msg441876#msg441876 date=1159293616] Where is the sent to column? [/quote] sent_to column is not important because every user has own table
  8. I rebuild my table and it works great but i have other question: [color=blue] id_rposta |  id_from | rpmsg              | time_rposta               | status --------------------------------------------------------------------------------------       1      |      hu   | gdfghdfhgsfgh  | 2006-09-19 10:48:23 | A          2      |      hula | skfhdhkfdjkfjds | 2006-09-12 11:23:18 | A            3      |      hula | sasjhafsfask    | 2006-09-12 11:23:37 |  A        4      |      hula | hsafhjasjkh      | 2006-09-12 11:23:59 | A            5      |      hu   | sahfhask         | 2006-09-14 11:33:37  | A            6      |      hu   | skdhkalllfshajjk | 2006-09-14 11:34:30  | A            7      |    hu     | sahfhask         | 2006-09-14 11:33:37  | A            8      |    hu     | sahfhask         | 2006-09-14 11:33:37  | A            9      |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           10     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           11     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           12     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           13     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           14     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           15     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A           16     |    hu     | sahfhask         | 2006-09-14 11:33:37  | A      [/color] please how to display exactly this? it means to diplay time_rposta of the last message [color=blue]               last msg       | by  | nr of msgs -----------------------------------------------  2006-09-14 11:33:37  | hu   | 12          <-- this count number of messages sent to and from [b]hu[/b]  2006-09-12 11:23:59  | hula | 4           <-- this count number of messages sent to and from [b]hula[/b] ----------------------------------------------- [/color] i use array so please do not use [color=blue]AS[/color] this is my script [color=blue][b]SELECT time_rposta, id_from,COUNT(*) FROM rpdb_user GROUP  BY id_from[/b][/color] which works great! THX NICKSPICK
  9. pls can somebody help me with this? i am logged as user1 and this is my database example id|from  |to      |msg ---------------------------------- 1 |axe    |user1 |sdgfsdgfdsghdf 2 |user1 |axe    |jsdfksdhkfsdhk 3 |axe    |user1 |jksajfksajkl 4 |axe    |hula  |skmfhjsdfsd 5 |hula  |user1 |sufgyfsdgy ----------------------------------- and i want to display this chat with | number of messages ----------------------------------- axe        | 3 hula        | 1 ----------------------------------- what php and mysql command i have to use?
×
×
  • 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.