Thanks! :-)
Your solution gives me exactly what I need!
Regards,
Evert
Ziv Gabel wrote:
Try This
$result = mysql_query("SELECT SUM(AcctInputOctets),SUM(AcctOutputOctets)
FROM radacct WHERE username = '$argv[1]' ");
this will make sure that even if $arg[1] is empty it still get '
I have an error showing;"I can't find the name of your HOME directory"
when I upload word doc and retrieve text by antiword.
I do not know why I will get kind like error!
code---
$handle = popen("/usr/bin/antiword \"$original_tmp\" -t 2>&1", '
That didn't do it. I tried with parentheses around the 109fh4.rep and
without the parentheses. The really curious thing is that the repetition
only happens within Maryland and starts with the second Maryland entry.
The next state is Maine (alphabetical by the abbreviation ME) and there is
um, that is a join, just uses the older syntax.
try selecting with the distinct clause
select
distinct(109fh4.rep),
veteransdata04.state
bastien
From: [EMAIL PROTECTED]
To: "php-db@lists.php.net"
Subject: Re: [PHP-DB] Repetitive Result
Date: Wed, 21 Sep 2005 16:17:53 -0400
Here's the que
Here's the query (actually pulled from 3 sql tables; no joins):
"select
109fh4.rep,
veteransdata04.state,
veteransdata04.cd,
109fh4.party,
1091vote224.vote1091224,
veteransdata04.vetpop,
veteransdata04.totalexpend*1000,
veteransdata04.totalpatients,
veteransdata04.medexpend*1000,
veteransdata04.
depends on your query, some joins might make for duplicate results...show
your code
bastien
From: [EMAIL PROTECTED]
To: "php-db@lists.php.net"
Subject: [PHP-DB] Repetitive Result
Date: Wed, 21 Sep 2005 16:02:48 -0400
I have a table created from two mysql tables which shows all Members of
I have a table created from two mysql tables which shows all Members of
Congress with related data. The Representative's name is pulled from one
sql table and the data from another sql table. When the php table comes
up on the web page, the name of the Representative for Maryland's 2nd
di
At 03:31 PM 9/21/2005, Daryl Booth wrote:
Hi,
How does the php.ini need to be setup for SMTP or how do I find it out?
Thank-You very much
Daryl Booth
Google didn't take long .
http://www.phplivesupport.com/documentation/viewarticle.php?uid=1&aid=70&pid=3
and that's pretty clear.
Hi,
How does the php.ini need to be setup for SMTP or how do I find it out?
Thank-You very much
Daryl Booth
Try This
$result = mysql_query("SELECT SUM(AcctInputOctets),SUM(AcctOutputOctets)
FROM radacct WHERE username = '$argv[1]' ");
this will make sure that even if $arg[1] is empty it still get '' (empty) as
part of the query
- Original Message -
From: "Sylvain Gourvil" <[EMAIL PROTECT
Evert Meulie wrote:
Hi!
I've tried your suggestions, but still get the same error message. The
'print_r($result);' that I added does not print anything, so that would
explain why I get the errors.
My idea is to call this script with a value, like:
script.php value
Doesn't that put the value
Hi!
I've tried your suggestions, but still get the same error message. The
'print_r($result);' that I added does not print anything, so that would explain
why I get the errors.
My idea is to call this script with a value, like:
script.php value
Doesn't that put the value in $argv[1] ?
Regar
Hi Evert, try:
echo mysql_result($result,0,0), "\n";
echo mysql_result($result,0,1);
You forgot a zero...
Regards, Sigrid
"Evert Meulie" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi all!
>
> I'm taking my first steps with PHP & MySQL.
>
> Can anyone give me a hint on w
Hi Evert, try:
echo mysql_result($result,0,0), "\n";
echo mysql_result($result,0,1);
You forgot a zero...
Regards, Sigrid
"Evert Meulie" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi all!
>
> I'm taking my first steps with PHP & MySQL.
>
> Can anyone give me a hint on w
Hi,
I guess you used a single quote over the query so the text, $argv[1],
was entered into the query rather than the value inside it.
try:
$result = mysql_query('SELECT SUM(AcctInputOctets),
SUM(AcctOutputOctets) FROM radacct WHERE username = ' .$argv[1] );
OR
$result = mysql_query("SELECT SU
Hi !
Could you do a "print_r($result)" after your mysql_query ?
Or you sure of your argv[1] ?
Sylvain Gourvil
Evert Meulie wrote:
Hi all!
I'm taking my first steps with PHP & MySQL.
Can anyone give me a hint on why this would not work?
*
$result = mysql_query('SELECT S
Hi!
I scanned the web today and found people with the same problems, but no
solutions.
The problem is: I try to connect an Oracle-DB with a
PHP-Command-Line-script.
It works fine, when I use: ora_logon("[EMAIL PROTECTED]","tiger")
But it doesn't with: OCILogon("scott", "tiger", "orcl")
I just get:
Hi all!
I'm taking my first steps with PHP & MySQL.
Can anyone give me a hint on why this would not work?
*
$result = mysql_query('SELECT SUM(AcctInputOctets), SUM(AcctOutputOctets) FROM
radacct WHERE username = $argv[1] ');
echo mysql_result($result,0), "\n";
echo mysql_
18 matches
Mail list logo