Eléphant du PHP |
134 Messages
27 juin 2013, 12:58
merci de ta réponse mais je ne comprends pas comment depuis ce code comment régénérer celui la
require_once 'simple_html_dom.php';
$html = new simple_html_dom();
$html->load_file('$url'); // je suppose que depuis le formulaire je récupère l'url
foreach($html->find('.pright') as $post){
echo 'ARTICLE : '.'<span style="color:blue;Font-Family: Arial, Sans-Serif;">'.$post->find('.panel_titre',0)->plaintext.'<br/>'.'</span>';
echo 'ARTICLE : '.'<span style="color:green;Font-Family: Arial, Sans-Serif;">'.$post->find('.stock_in',0)->plaintext.'<br/>'.'</span>';
echo 'ARTICLE : '.'<span style="color:red;Font-Family: Arial, Sans-Serif;">'.$post->find('#price',0)->plaintext.'<br/>'.'</span>';
}
Pour qu'il s'ajoute tout seul dans le fichier script désolé si je pose beaucoup de question, je galère vraiment... je suis débutant débutant ^^