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 Quote Link to comment 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); Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.