Try after your line "$result = ifs_query"
$row=mysql_fetch_assoc($result);
$first_name=$row[caa44340041];
$last_name=$row[caa442400042];
Below should work if you have multiple rows returned in the query and building
a list box -
while ($row=mysql_fetch_assoc($result))
{
echo "
Dan Shirah wrote:
How would I assign the output of a query into variables? I have the
following code:
$sql = "SELECT caa44340041, caa442400042 FROM caa44340, caa44240
WHERE caa443400018 = caa442400018; // THE QUERY ITSELF TO SELECT THE
DATA $result = ifx_query($sql, $connect_id) or die ("c
If the query only ever returns 1 row then like this:
$sql = "SELECT caa44340041, caa442400042 FROM caa44340, caa44240 WHERE
caa443400018 = caa442400018;
$result = ifx_query($sql, $connect_id) or die ("couldn't execute the
query");
$row = fetch_assoc_array($result);
$first_name = $row['caa4434
Anne
On your keywords_delete_ask.php page what error does
echo $_REQUEST['id'];
Produce?
Mike
- Original Message -
From: "Anne Shroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 07, 2004 10:16 AM
Subject: [PHP-WIN] Variables not retaining values
> A ve
<[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hi Felipe.
> First of all... the lacking double-quotes at the end ot the string! So,
the
> right way is:
> header("Location: validation.php?name=$name&mail=$mail&message=$message");
> This line works well if...
>
> Regarding your
Hi Felipe.
First of all... the lacking double-quotes at the end ot the string! So, the
right way is:
header("Location: validation.php?name=$name&mail=$mail&message=$message");
This line works well if...
Regarding your "question", the problem is in a uncorrect usage of the
variables while composing
> Could anyone tell me, why my variables are not valid anymore
> in an included file. They should, or? I tryed anything.
>
> Thanks, Harry
What do you mean by anymore? Have you upgraded PHP? What version are you
running, have you changed php.ini configuration?
Can you provide an example?
/Mart
That why one might want to look for HTML/HTTP specific things at www.w3.org
instead.
>-Original Message-
>From: Tony Leach
>Sent: Wednesday, October 17, 2001 6:34 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] variables in URL
>
>
>Thanks, I knew it was sim
Is there a special reason for you not wanting to use the POST method
instead?
(other wise just concatenate the variables with ampersand '&'.)
>-Original Message-
>From: Tony Leach [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 17, 2001 4:12 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-
Thanks, I knew it was simple but it isn't easy to find in the php manual !
WordWrap Web Development Limited
t +44 (0) 131 555 3535
f +44 (0) 870 135 3656
m +44 (0) 7768 626588
--
PHP Windows Mailing List (http:/
main.php?sectionName=home&variable2=blah&soon=soon
Regards
Matt Williams
[EMAIL PROTECTED]
>> How do I construct a URL to pass more than one variable to a php page?
>
> main.php?sectionName=home
>
> works fine for one variable, how do I pass more than one?
>
--
PHP Windows Mailing List
11 matches
Mail list logo