Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2029 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

need some help - froms from mysql db

Thread title: need some help - froms from mysql db
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
09-06-2007, 12:11 AM
#31
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Try the following PHP and tell us what it outputs, if anything.

PHP Code:

    $sql 
"SHOW TABLES LIKE 'cms_%'";
    
$query mysql_query($sql);
    
    
$rows = array();
    while(
$row mysql_fetch_array($query)) {
        
$rows[] = substr($row[0], 4);
    }

    if (
count($rows) == 0) {
        echo 
'No tables matching <strong>cms_</strong>...';
    } else {
        echo 
implode('<br>'$rows);
    } 

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed