Solarpitch Posted November 19, 2008 Share Posted November 19, 2008 This is wrong but just looking at how to do this.... putting the [$i] in between the row value <?php $par1 = $row["hole".[$i]."_par"]; ?> Link to comment https://forums.phpfreaks.com/topic/133313-whats-the-correct-way-of-doing-this/ Share on other sites More sharing options...
trq Posted November 19, 2008 Share Posted November 19, 2008 That should work fine. Link to comment https://forums.phpfreaks.com/topic/133313-whats-the-correct-way-of-doing-this/#findComment-693313 Share on other sites More sharing options...
Solarpitch Posted November 19, 2008 Author Share Posted November 19, 2008 I was thinking that alright but it doesnt seem to for some reason. Just gives a blank page meaning there's an error with it somewhere. Let me have another look and ill post the whole function if I cant get it. Link to comment https://forums.phpfreaks.com/topic/133313-whats-the-correct-way-of-doing-this/#findComment-693315 Share on other sites More sharing options...
Mchl Posted November 19, 2008 Share Posted November 19, 2008 Enable error reporting, so taht you actually know what the problem is. Now for your code (I assume it's inside for loop, looping through $i) $par1 = $row["hole".$i."_par"]; Link to comment https://forums.phpfreaks.com/topic/133313-whats-the-correct-way-of-doing-this/#findComment-693334 Share on other sites More sharing options...
trq Posted November 19, 2008 Share Posted November 19, 2008 hehe, I didn't even notice the [] braces. Sorry. Link to comment https://forums.phpfreaks.com/topic/133313-whats-the-correct-way-of-doing-this/#findComment-693390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.