johnwayne77 Posted September 21, 2008 Share Posted September 21, 2008 hi is my syntx correct for $raw[] ? $result = mysql_query("SELECT field1 FROM table WHERE field2 = '10'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { echo $row['field1']; $var = file('var' . $row['field1'] . '.txt'); thanks Link to comment https://forums.phpfreaks.com/topic/125207-row-syntax/ Share on other sites More sharing options...
DarkWater Posted September 21, 2008 Share Posted September 21, 2008 Yeah, looks fine. And just so you know, it's called an array. =P Link to comment https://forums.phpfreaks.com/topic/125207-row-syntax/#findComment-647190 Share on other sites More sharing options...
gaza165 Posted September 21, 2008 Share Posted September 21, 2008 you seem to be missing a } to end the loop..... Link to comment https://forums.phpfreaks.com/topic/125207-row-syntax/#findComment-647192 Share on other sites More sharing options...
.josh Posted September 21, 2008 Share Posted September 21, 2008 you seem to be missing a } to end the loop..... going to go out on a limb and say he just c/p'ed part of his code and that it extends beyond this. Link to comment https://forums.phpfreaks.com/topic/125207-row-syntax/#findComment-647196 Share on other sites More sharing options...
gaza165 Posted September 21, 2008 Share Posted September 21, 2008 oh right... that would make sense... thats more something i would do miss a } in my code Link to comment https://forums.phpfreaks.com/topic/125207-row-syntax/#findComment-647200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.