Reply
PHP output in HTML textboxes
Old 07-16-2004, 11:13 AM PHP output in HTML textboxes
Novice Talker

Posts: 8
I have a few textbox forms that I want to display the results of a database query in, using a variable.

For example:
<?
$x = "SELECT * FROM Database WHERE ID=200";
$result = @mssql_query($x, $conn); //$conn being my connection from an include file.

$emp = @mssql_fetch_array($result)
?>

<INPUT TYPE="text" NAME="name" Value="<? echo $emp['Name']; ?> ">


The textbox is supposed to display the "Name" field of the data base query. Am I doing this right?
Quest is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-16-2004, 12:25 PM
Novice Talker

Posts: 8
Nevermind I got it
Quest is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP output in HTML textboxes
 

Thread Tools

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