Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-30-2009, 04:25 AM newbie need help plz
Junior Talker

Posts: 3
Name: wan marwan
Trades: 0
PHP Code:
<?php
$con 
mysql_connect("localhost","root","");
if (!
$con)
  {
  die(
'Could not connect: ' mysql_error());
  }
mysql_select_db("eforum"$con);
$result mysql_query("SELECT * FROM submitissue");
echo 
"<table border='1'>
<tr>
<th>Issue Creator</th>
<th>Issue Owner</th>
<th>Issue Description</th>
</tr>"
;
while(
$row mysql_fetch_array($result))
  {
  echo 
"<tr>";
  echo 
"<td>" $row['icr'] . "</td>";
  echo 
"<td>" $row['io'] . "</td>";
  echo 
"<td>" $row['id'] . "</td>";
  echo 
"</tr>";
  }
echo 
"</table>";
mysql_close($con);
?>





ive enter few data in it,and this code display only a few of the data,can i create a view button next to the tabla when we view the query.the view button will open up the full detail of a data

cheers

Last edited by chrishirst; 12-30-2009 at 04:29 AM.. Reason: added [php] tags
wan_marwan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-31-2009, 07:30 AM Re: newbie need help plz
Novice Talker

Posts: 11
Name: syafiq
Trades: 0
you can use limit statement like this

"SELECT * FROM submitissue limit=0,10"
__________________
>>
Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
<<
hotsmusic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to newbie need help plz
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09692 seconds with 12 queries