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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.