PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 3rd, 2007, 04:23 AM
krthk_sg krthk_sg is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: India
Posts: 7 krthk_sg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
help me on this form pls

can any 1 pls tel me.what is $_isset and $_session and how is it getting called in this form.
<html>
<body>
<?php
require($DOCUMENT_ROOT . "test50.php");
?>
<?php

if (isset($_POST['id']))
{
$_SESSION['id']=$_POST['id'];
//echo $_POST['id'];
$a=$_POST['id'];

$result3= mysql_query("SELECT * FROM `student1` LIMIT $a, 10 ");
if(mysql_num_rows($result3) == 0){
echo "No results Found";
}
else
{
echo "<table border='1'>";
echo "<tr>";
echo "<th>NAME</th><th>ROLLNO</th><th>CLASS</th><th>CONTACTNO</th>";
echo "</tr>";
while($row4 = mysql_fetch_array($result3))
{
echo "<tr>";
echo "<td>".$row4['name'] . "<td>" . $row4['rollno'] . "<td>" .$row4['class'] . "<td>" . $row4['contactno'];
echo "</tr>";
echo "<br />";
}
echo "</table>";

//callfunc($a);
//echo "$a";
echo "<br />";
$a+=10;
echo "<br />";
//echo "$a";
}
}
?>


<?php
if (!isset($_POST['id']))
{
$a=0;
function callfunc($a)
{
$result2 = mysql_query("SELECT * FROM `student1` LIMIT $a, 10 ");
echo "<table border='1'>";
echo "<tr>";
echo "<th>NAME</th><th>ROLLNO</th><th>CLASS</th><th>CONTACTNO</th>";
echo "</tr>";
while($row2 = mysql_fetch_array($result2))
{
echo "<tr>";
echo "<td>".$row2['name'] . "<td>" . $row2['rollno'] . "<td>" .$row2['class'] . "<td>" . $row2['contactno'];
echo "</tr>";
echo "<br />";
}
echo "</table>";
}
callfunc($a);
//echo "$a";
echo "<br />";
$a+=10;
echo "<br />";
//echo "$a";

//echo '<INPUT type="button" value="NEXT" onClick="callfunc($a);" />';
mysql_close($con);
}
?>
<form method="post" action="test55-2.php">
<!-- <INPUT type="button" value="NEXT" onClick='<?$calltofun ?>' />-->
<input type="hidden" name="id" value="<?= $a ?>">
<input type="submit" value="Next">
</form>

</body>
</html>


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > help me on this form pls


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway