artist19 Posted October 31, 2009 Share Posted October 31, 2009 <?php echo $row_Signs['Define']; ?> Based on the name (Define) of the table (mySQL) above, how do I modify this rating line below? <?php $rr->showStars("sudoku"); ?> For example: <?php $rr->showStars($row_Signs['Define']); ?> but I'm not sure how to code this correctly. Yes, I am a php newbie. Thanks much in advance. Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 31, 2009 Share Posted October 31, 2009 Seems ok to me. You have any problems with it? Quote Link to comment Share on other sites More sharing options...
artist19 Posted November 1, 2009 Author Share Posted November 1, 2009 The part 'Define' variable does not show up. It shows blank. I tried different ways (by blind guesses) but no luck. Like these: <?php echo $rr->showStars($row_Signs['Define']); ?> or <?php $Rating -> echo $row_Signs['Define']; $rr->showStars("$Rating"); } ?> No luck but the only thing that works is to put any word in it (static) like: <?php echo $rr->showStars("any-word-you-place-here"); ?> It works but, not working with $variable in it. The code I use <?php echo $row_Signs['Define']; ?> in the other parts do work. I can't figure out these hints. Any ideas with possible codes? Your help would be greatly appreciated. Thanks. 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.