Search found 8 matches
- Sat Jul 03, 2010 12:42 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
- Fri Jul 02, 2010 6:56 pm
- Forum: PHP - Code
- Topic: page results question
- Replies: 2
- Views: 747
Re: page results question
Here, I use this myself. First << 1 2 3 4 5 >> Last You can set how many numbers you want to appear inbetween. If you have 7 pages and only want 5 digits to appear it will go like... First << 1 2 3 4 ... 8 >> Last http://phpsense.com/php/php-pagination-script.html Example. <?php //Include the PS_Pag...
- Fri Jul 02, 2010 2:28 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
Re: Empty Cell PHP/MySQL
It's a bit messy I am still working on it. http://i45.tinypic.com/25is0mw.png the code you gave me returned nothing Here is the whole function. function forumIndex($log, $admin){ global $dbHost, $dbUser, $dbPass, $dbDatabase, $ckName; // STORAGE ------------------------------------------------------...
- Thu Jul 01, 2010 6:01 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
Re: Empty Cell PHP/MySQL
Didn't work either =\
- Wed Jun 30, 2010 8:06 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
Re: Empty Cell PHP/MySQL
Any other ideas? This is starting to hold back my entire project, because I have the same problem on a number of thing I am working on.
- Wed Jun 30, 2010 1:39 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
Re: Empty Cell PHP/MySQL
Didn't work, still returning either full string or nothing.
- Tue Jun 29, 2010 11:19 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
Re: Empty Cell PHP/MySQL
What do you mean? It returns a result when there is one; however, when there is no match I want it to do something else. That is where the if statement would come in, but I don not know what is being returned.Jade wrote:Have you checked to make sure the query is returning a result set?
- Tue Jun 29, 2010 4:54 pm
- Forum: PHP - Code
- Topic: Empty Cell PHP/MySQL
- Replies: 10
- Views: 2471
Empty Cell PHP/MySQL
I got this... $result_topics_last = mysql_query("SELECT * FROM topics WHERE forum_id = '".$forum."' AND type = '0' AND topic_id = '".$forums_topics['id']."' ORDER BY position DESC LIMIT 0,1"); while($topics_last = mysql_fetch_array($result_topics_last)){ $html .= "...