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.

Website Design Forum


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



Freelance Jobs

View Poll Results: code for tablelink
--------- 0 0%
------------ 0 0%
Multiple Choice Poll. Voters: 0. You may not vote on this poll

Reply
Old 08-16-2010, 03:31 AM Code for Table link
Junior Talker

Posts: 1
Name: Priya
Trades: 0


it is my tblink.php page where i am trying to link a individual colm which should display related symbol details which stored in mysql database for that i written seprate code named as symbol.php

when i click on Symbol in table i am getting only last Symbol name not related Symbol.

tblink.php
PHP Code:
while( $sql_row=mysql_fetch_array($sql_result) ) {
$Symbol=$sql_row["Company"]; 
echo "<tr >";
echo "<td id=\"comp\" bgcolor=\"#E9E9E9\"><a href=\"#\" onclick=\"javascript:link('symbol.php')\" name=\"symb\" id=\"symb\">".$Symbol."</a></td>";
$_SESSION['symbol'] = $Symbol;
echo "</tr>";

echo "</table><br>";
}
?>
 
Symbol.php
 
<?php
session_start
();
ob_start();
$symbol $_SESSION['symbol'];
if(isset(
$_POST))

include_once 
'db.php';
 
$sql="call sp_search('".$symbol."')";
$sql_result=mysql_query($sql) or exit("Sql Error".mysql_error());
$sql_num=mysql_num_rows($sql_result);
 
echo 
"<table width=\"50\" height=\"50\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">";
 
$sql_row mysql_fetch_array($sql_result);
echo 
"<tr bgcolor=\"#EBEBEB\">";
echo 
"<th align=\"left\"> Company Name </th>";
echo 
"<td align=\"center\">".$sql_row['company']."</td>";
echo 
"<th align=\"left\"> Vol: </th>";
echo 
"<td align=\"center\">".$sql_row['value']."</td>";
echo 
"</tr>";
 
echo 
"<tr>";
echo 
"<th align=\"left\"> Price: </th>";
echo 
"<td align=\"center\">".$sql_row['price']."</td>";
 
echo 
"</tr>";
 
echo 
"</tr>";
 
echo 
"</table>";
 
}
?>

Plz sugest as soon as possible its urgent

Last edited by chrishirst; 08-19-2010 at 04:32 PM..
finder is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Code for Table link
 

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.08525 seconds with 13 queries