| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: Leeds, UK
Posts: 263
![]() | Last PHP Question - I promise Hi. I have one last final problem with PHP sessions. Please take a look at the attached small screen shot. Each session is called [game1] all the way down to game20] If the database is full for all sessions except [game8] users will see a blank line where [game8] should be. Is there anyway to move [game9] up one line to prevent the blank space? Also, as a rule of thumb, I would need such a script to ignore any blank sessions and move all the full lines towards the top. Thanks VERY much for reading. I promise this is my last question ????: NamePros.com http://www.namepros.com/programming/201760-last-php-question-i-promise.html David.
__________________ Michael McIntyre - Fan site for the super funny UK comedian Michael McIntyre |
| |
| | #2 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | You Should probalbly use this instead: Code: $detect = mysql_query("select `field` from `table` LIMIT 0, 20");
while ($row = mysql_fetch_array($detect, MYSQL_BOTH)) {
printf("%s", $row[0]);
}
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: Leeds, UK
Posts: 263
![]() | Hi You have confused me there lol. Im just looking for a simple script that will ignore blank fields and move the next field containing data upwards to prevent users seeing blank lines on pages. Thanks for trying though.
__________________ Michael McIntyre - Fan site for the super funny UK comedian Michael McIntyre |
| |
| | #4 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: Leeds, UK
Posts: 263
![]() | Hi Dan The page is displaying... "Parse error: parse error, unexpected $ in /homepages/33/d149588437/htdocs/test.php on line 16" Thanks for trying
__________________ Michael McIntyre - Fan site for the super funny UK comedian Michael McIntyre |
| |