Jump to content

Varun

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Varun's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. here i'm i think the problem is very simple but i can't get solution here is the code the $com will get integer not character will get the id of entries <?php include 'admin/config.php'; $com = $_GET['id']; $sql = mysql_query("SELECT * FROM entries, COMMENT WHERE entries.'".$com."' = comment.postid"); while ($row = mysql_fetch_array($sql)) { echo $row['title'];echo '<br />'; echo $row['body']; echo '<hr/>'; echo '<h3>Comment</h3>'; echo 'Name::'; echo $row['Name'];echo '<br />'; echo 'Comment::'; echo $row['comment']; } ?> here is the error i got ::Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given
  2. i want to make a page that show 10 products if more than 10 products show page 2 to continue like " << 1 , 2 ,3 >> " previous and next page This is my example code <?php $dblink = mysql_connect("localhost","root",""); mysql_query("USE shopping_cart;"); $result = mysql_query("SELECT * FROM product order by pid;"); ?> <table width="800"> <tr valign="top"> <td width="500"> <div style="width:100%; height:500px;"> <table width="100%" border="0" bordercolor="gray" style="border-colllapse:collapse;"> <?php while($p = mysql_fetch_array($result)) { ?> <tr valign="top"> <td width="100" align="center"> <img src="<?php echo $p['img']; ?>" width="125" height="125"> </td> <td> <div class="pd_title"><?php echo $p['product_name']; ?></div> <div class="pd_desc"><?php echo $p['description']; ?></div> <p><a href="<?php echo $p['example']; ?>"><img src="example" width="49" height="33" /></a></td> </tr> <tr><td colspan="2"><hr noshade size="1" color="green"></td></tr> <?php } ?> </table> </td> <td id="cart" align="center" bgcolor="#eeeeff"> </div> </td> </tr> </table> </body> </html> how to can i make a dynamic change page link like product?=1 Please need help badly :'(
×
×
  • 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.