Re: i want to parse HTML and insert it into DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Abdul Qadir,

You may use the following function to parse data...

<?php
$string = "aBBBaCCCADDDaEEEaGGGA";
$chunks = spliti ("a", $string, 5);
print_r($chunks);
?> 

The Result will be:

Array
(
  [0] =>
  [1] => BBB
  [2] => CCC
  [3] => DDD
  [4] => EEEaGGGA
)
For reference plz visit
http://www.php.net/manual/en/function.spliti.php

http://www.php.net/manual/en/function.preg-split.php

Tell me weather u found helpful or not..
Bye


________________________________
From: (¯`?.~ Abdul Qadir ~.?´¯) <abdulqadirmail@xxxxxxxxx>
To: PHP list <php-list@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 28, 2009 5:18:53 PM
Subject:  i want to parse HTML and insert it into DB


Aslam o
Alikum

Hy dear all 
I m in a
problem please help me 
Problem : I
want to parse html data and insert it into mysql DB
Description
: I want to open a html file by using php and then read its data in between html
tags and insert 
the data into DBe.g. 
<table width="100%" border="0" cellspacing= "0" cellpadding= "1">
<tr>
<td>Heading 1</td>
<td>Heading 2</td>
<td>Heading 3</td>
<td>Heading 4</td>
</tr>
<tr>
<td>10a</td>
<td>20a</td>
<td>30a</td>
<td>40a</td>
</tr>
</table>
i want to insert the Heading 1, Heading 2..... and 10a, 20a...... and so on.....

if anyone
can, then guide me please

Best Regards,
Abdul Qadir
Web Designer & Developer
Cell:
+923335760105
+923455611619

[Non-text portions of this message have been removed]

 


      

[Non-text portions of this message have been removed]


------------------------------------

Are you looking for a PHP job? Join the PHP Professionals directory Now!
http://www.phpclasses.org/professionals/Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-objects/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:php-objects-digest@xxxxxxxxxxxxxxx 
    mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux