multiple SQL tables with PHP to generate sitemap
问题 I have a sitemap that's generated with PHP and actually its calling only the table retailers as below: $query = "select * from retailers WHERE status='active' ORDER BY added DESC"; and construct as: while ($row = mysql_fetch_array($result)) { $i_url = SITE_URL.'loja/'.$row['slug_title']; $year = substr($row['added'],0,4); $month = substr($row['added'],5,2); $day = substr($row['added'],8,2); $i_date = ''.$year.'-'.$month.'-'.$day.''; // you can assign whatever changefreq and priority you like