POST + QUERY
- From: mrsquash2@xxxxxxxxx ("Dan Shirah")
- Date: Tue, 27 Mar 2007 15:58:09 -0400
Okay, I thought this was VERY simple, but I cannot wrap my mind around what
I am doing wrong.
echo $_POST['max_id']; *The echo returns the correct result
*if($_POST['max_id'] ='') { *This is suppose to run the below query if
$_POST['max_id'] is not blank*
$max_id = $_POST['max_id']; *Sets my POST value to a variable*
$info = "SELECT * FROM payment_request WHERE id = '$max_id'"; *Selects
record from my database by the matching ID's*
$result_info = mssql_query($info) or die(mssql_error()); *Puts the query
results into a variable*
$row_info = ifx_fetch_row($result_info); *Makes a row in an array for all
the returned fields from my query*
$my_info = $row_info['my_value'];
<input type="Text" value="<?php echo $my_info; ?>" size="20" maxlength="16"
name="my_value"> *However, this box returns no data.*
I should be using if($_POST['max_id'] ='') { and notif($_POST['max_id']
!=='') { correct? Since it is a comparative function just the = should
be correct.
- Follow-Ups:
- Re: [PHP] POST + QUERY
- From: Jim Lucas
- Re: [PHP] POST + QUERY
- From: Zoltán Németh
- Re: [PHP] POST + QUERY
- From: Brad Bonkoski
- Re: [PHP] POST + QUERY
- From: "Tijnema !"
- Re: [PHP] POST + QUERY
- From: Davi
- Re: [PHP] POST + QUERY
- From: "Dave Goodchild"
- Re: [PHP] POST + QUERY
- Prev by Date: Re: [PHP] preview string with strlen PHP (help)
- Next by Date: Re: [PHP] preview string with strlen PHP (help)
- Previous by thread: PHP Session variable
- Next by thread: Re: [PHP] POST + QUERY
- Index(es):
Relevant Pages
|
|