Jump to content

moiisam10

New Members
  • Posts

    9
  • Joined

  • Last visited

moiisam10's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks again bro , i look like a real noob..
  2. Well... Really i get the $lal with this. $lal = $row[0]->nodeValue; from curl.
  3. Hello guys... Am here again maybe with a noob question.. but well am just triying to learn all possible. I got a variable... $lal = 4820.492 and i need to divie all in 2... like $lal2 = 2410.246 I triyied with $lal2 = $lal/2; echo $lal2; But i just get the first character. so its "2" , i triyed with explode but dont work or dont know, with number_format and i dont know how to make it work.. Thanks in advanced to all.
  4. God. Thanks in advanced.
  5. i make it work but i get all the text in the table. like this.. But i just need to get this. and that info is on this <tr> tag. Thanks in advanced.
  6. Hello guys, am here again... I have a problem triying to read the total ammount of a table.. I load the whole table with xpath. $html = file_get_html('$url'); $rows = $html->find('//*[@class="listado1"]'); foreach($rows as $row) { echo $row->plaintext; } but i need to get just the "total".. i tryed with. $html = file_get_html('$url'); $rows = $html->find('//*[@class="listado1"][5]'); foreach($rows as $row) { echo $row->plaintext; } //NOTHING.... $html = file_get_html('$url'); $rows = $html->find('//*[@class="listado1"]//tr//td/b'); foreach($rows as $row) { echo $row->plaintext; } //NOTHING AGAIN.... Thanks in advanced to all.
  7. Hello guys, is there a way to get the "TOTAL" and "AMOUNT" with php? Look the image. Thanks in advanced. I tryed with curl but i really dont know so much. sorry my noobs questions, just trying to learn something.
  8. Solved with this. .$_POST['tb1']; Thanks in advanced.
  9. Hello, am new to the forum. I want to grow as php coder and try to learns as much as possible, thanks for all.. Look i need some help triying to use my CURL code with a php text box.. The problem is that i parse the textbox to url by javascript function. <?php $url = "?nie="; ?> <script type="text/javascript"> function doStuff() { window.location.href="?nie="+encodeURIComponent(document.getElementById('tb1').value); } </script> <form action="" method="post"> <input type="text" id="tb1"> <input type="button" value="Buscar" onclick="doStuff()"> </form> but i need to parse that url to the CURL url. $url = "?nie="; $ch=curl_init(); $timeout=5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // Get URL content $lines_string=curl_exec($ch); // close handle to release resources curl_close($ch); //output, you can also save it locally on the server echo $lines_string; ?> in the URL, the "?nie=" part is the value of the textbox.. the problem is.. If i put in the textbox 12464883 i need to put 12464883 in the "?nie="... Thanks in advanced and sorry for my bad english i am from venezuela.. Thanks to all
×
×
  • 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.