Jump to content

display records from database.


nhojeinnor

Recommended Posts

public function viewLinks()
    {                                     
        
        $sql = "SELECT * FROM link";                                                                                                                 
        $result = mysql_query($sql) or die(mysql_error());          
        while($rows=mysql_fetch_array($result))
        {
            
            $siteid     = $rows['site_id'];
            $affid      = $rows['affid'];
            $sales_type = $rows['sales_type'];
            $link       = $rows['link'];
          
echo $link;
        }  
        
    }  
  
} 

 

 

what i want to do is to display those records from another php file. or to a new form. but how? pls help. tnx

Link to comment
https://forums.phpfreaks.com/topic/199872-display-records-from-database/
Share on other sites

public function viewLinks()
    {                                     
        
        $sql = "SELECT * FROM link";                                                                                                                 
        $result = mysql_query($sql) or die(mysql_error());          
        while($rows=mysql_fetch_array($result))
        {
            
            $siteid     = $rows['site_id'];
            $affid      = $rows['affid'];
            $sales_type = $rows['sales_type'];
            $link       = $rows['link'];
          
echo $link;
        }  
        
    }  
  
} 

 

 

what i want to do is to display those records from another php file. or to a new form. but how? pls help. tnx

 

ive figured out myself.. anyone wants to know.. just post here.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.