Morning!
Okay here is what’s happening. I followed the tutorial last night but it was based on text files and strings. I have no idea about expressions, I just learned how to fetch data from the database. I literally still have the bottle in my mouth. 
I did a Google search for a similar web scraping/harvesting tut with images, the only thing that came up was another custom class (Simple HTML DOM). That worked handsomely, I was excited until I tried to extend the functionally.
The below works like a charm, very fast by the way.
[php]
<?php
include 'connect.php';
include('simple_html_dom.php');
$html = file_get_html('http://www.cnn.com');
foreach($html->find('div#pic') as $e)
?>
Your Corp. Pic
<?php echo $e; ?>
[/php]
I need to be able to make $html = file_get_html(‘url’); dynamic.
This needs to talk to the data that was submitted by the user in the database…
The users information is stored in a table called ‘user_info’ with ‘user_name’ & ‘user_url’
My goal is to fetch the url, scrape the image and dump into a preloader so that it can be called in by ajax when needed. My failed attempt below…
[php]
<?php
include 'connect.php';
$sql="SELECT * FROM user_info";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo "
" . $row['user_name'] . "
";
// I would like for the below information to dynamically populate file_get_html('url'); and scrape images
echo "
" . $row['user_url'] . "
";
}
?>
[/php]
It all look so beautiful In my head, but I guess in theory not so much 
I am sure there is a way easier way to accomplish this I just don’t have the knowledge to do so.
The iFrames are so slow!!! I’m sad