Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags
php x 45
Member Avatar for yamot47

[CODE]echo ("<tr bgcolor='B0C4DE'>"); $value=$row['idbook_code']; $author=$row['b_author']; $book=$row['b_name']; echo ('ISBN : '.$row['idbook_code'].'<br/>'); echo ('Title : '.$row['b_name'].'<br/>'); echo ('Author : '.$row['b_author'].'<br/>'); echo ('Books Available : '.$row['b_avail'].'<br/>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("Available".'<br/>'); }else { echo("<input type='hidden' name='idbook' value='$value'>"); echo("<input type='hidden' name='author' value='$author'>"); echo("<input type='hidden' …

Member Avatar for yamot47
0
103
Member Avatar for yamot47

[CODE]echo ("<tr id='$a' bgcolor='B0C4DE'>"); echo ('<td>'.$row['idbook_code'].'</td>'); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("<td>Available</td>"); }else echo("<td><INPUT TYPE=button id=show name=show value=add></td>"); }else echo("<td>No stock of book</td>"); echo("</tr>"); ?>[/CODE] i have my search area when i search it output …

Member Avatar for yamot47
0
188
Member Avatar for yamot47

[CODE]# <form name="Item Search" method="post" action="search1.php"> # Item Search:<br> # <label> # <input name="swords" type="text" size="30" maxlength="30"> </label> <br> <label> <input name="search" type="submit" id="search" value="Search"> </label> <a href="logout.php">Logout</a> </form> <?php if(isset($_POST['submit'])||isset($_POST['swords'])||isset($_GET['swords'])){ if (isset($_POST['swords'])) { $search=$_POST['swords']; }else { $search=$_GET['swords']; } $newurl = "search.php?swords="; $searchwords = addslashes(htmlspecialchars($_POST['swords'])); { $words = explode(' ',$searchwords); …

Member Avatar for yamot47
0
75
Member Avatar for yamot47

Below is my code can you debug it?? when i try to search on my search box it only show the data equal to the input box but when i clicked the pagination all the data in the database show i only want to show the data that been search …

Member Avatar for yamot47
0
131
Member Avatar for yamot47

will somebody show me a sample how to add cart using dynamic button?? im having trouble retrieving value using dynamic button using the code below [CODE] # echo("<TR id='$i' bgcolor='B0C4DE'>"); # $sr_num=$row['b_sr_num']; # echo ("<td><input name=data id=data type=text id=data readonly=readonly value=$sr_num></td>"); # echo ('<td>'.$row['b_name'].'</td>'); # echo ('<td>'.$row['b_author'].'</td>'); # echo ('<td>'.$row['b_avail'].'</td>'); …

Member Avatar for HemantPHP
0
64
Member Avatar for yamot47

[CODE]while ($row = mysql_fetch_assoc($query)){ echo("<tr id='$a' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ('<td>'.$row['b_sr_num'].'</td>'); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("<td>Available</td>"); }else echo("<td><INPUT TYPE=button id=show name=show[] value=add onClick=buttonPress('$sr_num','$a')></td>"); [/CODE] can you give me the code of or sample to use …

Member Avatar for yamot47
0
69
Member Avatar for yamot47

[CODE] echo("<TABLE width='70%' border='2' cellpadding='3' ALIGN=CENTER name='test' >"); echo("<TR bgcolor='B0C4DE'>"); echo("<TH>Sr.No</TH>"); echo("<TH>Title Of Book</TH>"); echo("<TH>Author Name</TH>"); echo("<TH>Number of Copies</TH>"); echo("<TH>Borrow</TH>"); echo("</TR>"); //searching using title of book $count=0; $i=1; while ($row = mysql_fetch_assoc($query)){ echo("<TR id='$i' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ("<td><input name=data id=data type=text id=data readonly=readonly value=$sr_num></td>"); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); …

0
65
Member Avatar for yamot47

does it's possible to retrieve data from a javascript ?? coz js is a client side script and php is a server side how can i get value of my js??[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> …

Member Avatar for divyakrishnan
0
1K
Member Avatar for yamot47

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function buttonPress(str) { var str; alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" …

Member Avatar for yamot47
0
245
Member Avatar for joban.ali

Hi I just wanted some advice regarding my login script. Example: I have 2 types of user "Student" and "staff" I would like both types of users which are in different tables to log into one login form, at the moment I have 2 separate scripts. The general assumptions apply …

Member Avatar for Zagga
0
111
Member Avatar for yamot47

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function buttonPress(str) { alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" size="30" maxlength="30"> …

Member Avatar for yamot47
0
192