raghoo Posted June 7, 2008 Share Posted June 7, 2008 i am writing my own query but i did not getting result <?php $test=$_REQUEST['test']; $cat_id=$_REQUEST['cat_id']; if($test!="") { if(!isset($_GET['act']) || $_GET['act'] != 'play'){ $query="select * from categories where cImage "; $result=mysql_query($query); while($data=mysql_fetch_array($result)) { $values=$data['cName']; $cat_id=$data['cId']; echo "<br>"; echo "<table width='100%' cellpading='0' cellspacing='0' border='0'>"; echo "<tr>"; echo "<td width='20%' align='left'><a href='products_dis.php?test=test&cat_id=$data[cId]'><img src='images/$data[cImage]' ></a></a><td>"; echo "<td width='80%' align='left' valign='top'>"; echo "</table>"; echo "<td>"; echo "</tr> "; echo "</table>"; } } } ?> in this i am getting only one image and related url in every category ony one image(test.jpg) and url(test.php) please help me how to get related image and url to every category. Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/ Share on other sites More sharing options...
fenway Posted June 7, 2008 Share Posted June 7, 2008 I only see one query.... Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-560028 Share on other sites More sharing options...
raghoo Posted June 8, 2008 Author Share Posted June 8, 2008 how to get different images urls for different categories? is there need any other data i will provide please help Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-560255 Share on other sites More sharing options...
raghoo Posted June 10, 2008 Author Share Posted June 10, 2008 anybody here to help me Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-561783 Share on other sites More sharing options...
raghoo Posted June 10, 2008 Author Share Posted June 10, 2008 anybody here to help me Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-562324 Share on other sites More sharing options...
fenway Posted June 11, 2008 Share Posted June 11, 2008 how to get different images urls for different categories? is there need any other data i will provide please help Like your table structure? Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-563046 Share on other sites More sharing options...
raghoo Posted June 18, 2008 Author Share Posted June 18, 2008 how to get different images urls for different categories? is there need any other data i will provide please help Like your table structure? i did not get Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-568185 Share on other sites More sharing options...
fenway Posted June 18, 2008 Share Posted June 18, 2008 Get what? Your query makes no sense -- WHERE cImage? Quote Link to comment https://forums.phpfreaks.com/topic/109139-i-have-problem-to-get-data-in-home-page/#findComment-568390 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.