zeem Posted April 23, 2007 Share Posted April 23, 2007 Ok heres wat i have: I Have a mysql table that outputs to my webpage. I also have several .dat files, which correspond to the cells in the sql table that i want to be shown in an HTML table. I want each html table cell to have the .dat folder. how do i make a varialbe address? in case that doesnt make sence, which im sure it doesnt $file = '$varriableaddress .dat'; $fh = fopen($file, 'r'); $f=fread($fh,999); fclose($fh); and so on and so on Link to comment https://forums.phpfreaks.com/topic/48269-dat-help/ Share on other sites More sharing options...
clown[NOR] Posted April 23, 2007 Share Posted April 23, 2007 a shot in the dark here: $file = $varriableaddress.'.dat'; $fh = fopen($file, 'r'); $f=fread($fh,999); fclose($fh); Link to comment https://forums.phpfreaks.com/topic/48269-dat-help/#findComment-235960 Share on other sites More sharing options...
zeem Posted April 23, 2007 Author Share Posted April 23, 2007 Nothing. that wont work cause $file is a variable. i need to add .dat onto the end of $variableaddress, saving it into $file...i would assum, if there is an easier way to do this i would be thrilled z Link to comment https://forums.phpfreaks.com/topic/48269-dat-help/#findComment-235970 Share on other sites More sharing options...
zeem Posted April 23, 2007 Author Share Posted April 23, 2007 oh darn, nevermind, your right...wow thats a lot simpler than i thot it would be...damn thanks tho z Link to comment https://forums.phpfreaks.com/topic/48269-dat-help/#findComment-235972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.