I hope comeone could help me out with my problem.
I have mysql table where is are columns ID and XMLLink, there is only one row which is UPDATED via html/php/mysql
form..
My problem is I need to get data from XMLLink to some variable and this variable echo out in simplexml_load_file('$variable')
I don't know if is this even possible but I try it..
I have this code:
$xmllink_query = mysql_query("SELECT xmllink FROM {$cfg[tbl_xmllink]} WHERE id='1'") or die(mysql_error());
while ($xmllink_array = mysql_fetch_row($xmllink_query)){
$xmllink =$xmllink_array['0'];
}
echo $xmllink;
//simplexml load xml feed file
$vmdily = simplexml_load_file('$xmllink');
When I echo out only $xmllink
it works fine but I'm getting error like Warning: simplexml_load_file(): I/O warning : failed to load external entity "$xmllink"
How is possible to resolve this?
Thank you for your suggestions. :)