POST + QUERY



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.


Relevant Pages

  • Re: Lucid statement of the MV vs RM position?
    ... before database managment systems, much of Pick will be familiar to you. ... Dictionaries are ... mind of the end-users too. ... decoding the data ought to be in the mind of the programmer, ...
    (comp.databases.theory)
  • Re: Lucid statement of the MV vs RM position?
    ... before database managment systems, much of Pick will be familiar to you. ... pizza with onions on it will have only one value, ... This raises two questions in my mind: ... decoding the data ought to be in the mind of the programmer, ...
    (comp.databases.theory)
  • Re: Fuzzy matching of postal addresses
    ... > need to look for matching addresses in the two databases. ... > database B. ... The critical issue is, as you suspected, normalization. ... The first is a flat, house name and street name, the second is a number ...
    (comp.lang.python)
  • Re: Help with lookups and arrays
    ... I know this would be better as a database. ... Pricesheets, then return a 1 if the ... *approximate* matching, which is why col E in the Pricelist table needs ... lookup key exactly, that's why its result is compared to the lookup key. ...
    (microsoft.public.excel)
  • Re: Mail Merge - Fields missing within "insert merge field" tab
    ... excel doc, I got the database working. ... I went through the whole process again - save as .csv, ... "wrap" function that seems to cause the problem. ...
    (microsoft.public.word.mailmerge.fields)