Jump to content

passing value


fareedreg

Recommended Posts

<?php

 

require_once("balance.php");

 

echo "<table width='231' border='1' align='center'>";

echo "<tr>";

echo "<td width='113' bgcolor='#CCCCFF'><div align='center'><span class='style1'>Current Balance</span></div></td>";

echo "<td width='102'><div align='center'>$totalamt</div></td>";

echo "</tr>";

echo "</table>";

 

?>

 

 

See above coding .. I a getting $totalamt value from balance.php and its coming perfectly ok.. But i would like to pass memberid from this from to balance.php.. so it will search in sql according to memberid.. how can i pass memberid to balance.php in this form.

Link to comment
https://forums.phpfreaks.com/topic/186062-passing-value/
Share on other sites

First: Please use [ php ] or [ code ] tags.

Second:  If the balance.php includes a function todo the sql query, you can simply call the function and pass the variable to it

do_query($memberid);

 

Although I don't know from where the $memberid is comming..

Link to comment
https://forums.phpfreaks.com/topic/186062-passing-value/#findComment-982635
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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