Search found 6 matches

by janjan376
Sun Jul 02, 2006 11:43 pm
Forum: Databases
Topic: retrieving data using PHP
Replies: 9
Views: 1003

<?php include 'config.php'; include 'opendb.php'; $query ="SELECT * FROM sender where fname='$fname'"; echo "$fname<br>"; $result=mysql_query($query); echo "$result<br><br>"; while($row = mysql_fetch_row($result)) { #$id=$row[0]; $fname=$row[1]; #$lname =$row["lnam...
by janjan376
Sun Jul 02, 2006 10:59 pm
Forum: Databases
Topic: retrieving data using PHP
Replies: 9
Views: 1003

$query ="SELECT * FROM sender where fname=$_POST['fname']"; echo "$fname"; Doing the above script gives me the following error: --------------------------- Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp...
by janjan376
Sat Jul 01, 2006 9:58 pm
Forum: Databases
Topic: retrieving data using PHP
Replies: 9
Views: 1003

the selectname.php has php tags otherwise it would give different error message from above.
by janjan376
Sat Jul 01, 2006 8:55 am
Forum: Databases
Topic: retrieving data using PHP
Replies: 9
Views: 1003

sorry but it did not work. thanks for trying.
by janjan376
Sat Jul 01, 2006 12:27 am
Forum: Databases
Topic: retrieving data using PHP
Replies: 9
Views: 1003

Correction

<form action="select_name.php" method="post">

is being corrected as:

<form action="selectname.php" method="post">

still havng the same problem
by janjan376
Sat Jul 01, 2006 12:24 am
Forum: Databases
Topic: retrieving data using PHP
Replies: 9
Views: 1003

retrieving data using PHP

---------- selectname.htm --------------- <html> <head> <title>selectname</title> </head> <body> <form action="select_name.php" method="post"> <input type="text" name="fname"> <input type="submit" value="retrieve it"> </form> </body> </html...