nhojeinnor Posted April 27, 2010 Share Posted April 27, 2010 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 More sharing options...
nhojeinnor Posted April 27, 2010 Author Share Posted April 27, 2010 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. Link to comment https://forums.phpfreaks.com/topic/199872-display-records-from-database/#findComment-1049164 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.