$query = "SELECT wrd FROM uf WHERE wrd LIKE '%e6%' LIMIT 0 , 1";
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
$mnu .= "$row[wrd]";
}
This is the basic script to display contents within a webpage.
I can get the script to work, plus the query works, BUT I cant get them to work together..
The query feeds the file_get_contents with a page name dynamically.
$page_data = file_get_contents("/$mnu.html");
$array = explode(', ', $array);
echo "$array[0]";
#########
No need to go on any further I stumbled on a solution...
Query....
$menu .= "$row[word]";
}
$trial .= file_get_contents("http://url.com/$menu");
On another rant
If the query is say "Limit 0,20" how can the result be sorted out by this means:
Query....
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
$menu .= "$row[word]";
}
echo "$menu[1] - $menu[2] - $menu[20]"; // ?