Jump to content

i have problem to get data in home page


raghoo

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.