Dan Joseph schreef:
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote:
...
$i[servername]
Try: $i['servername']
notice the ' and ' around the name. I've heard you can do w/o those, but
I've had issues in the past where it didn't work. ITs also good practice to
us
That was it!!! Thank you all so much for your help!!! =D
""Dan Joseph"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Wed, Sep 17, 2008 at 4:30 PM, Vinny Gullotta
<[EMAIL PROTECTED]>wrote:
If by key you mean the column in the database, it's called: servername
"Micah Gerste
I meant key in the array that was returned by MySQL. I answered you in
my other post. The array was numerically index based instead of column
based.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vinny Gullotta wrote:
> If by key you mean the column in the
On Wed, Sep 17, 2008 at 4:30 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote:
> If by key you mean the column in the database, it's called: servername
>
> "Micah Gersten" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> What is the key for the server name? That's what you need when
That's your problem, you need to use mysql_fetch_assoc instead of
mysql_fetch_row.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vinny Gullotta wrote:
> var_dump looks like this:
>
> array(2) { [0]=> string(9) "wehost006" [1]=> string(2) "72" } array(2)
> {
If by key you mean the column in the database, it's called: servername
"Micah Gersten" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
What is the key for the server name? That's what you need when you
output it.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://
var_dump looks like this:
array(2) { [0]=> string(9) "wehost006" [1]=> string(2) "72" } array(2) {
[0]=> string(8) "H7848-49" [1]=> string(2) "71" } array(2) { [0]=> string(7)
"H7853-2" [1]=> string(2) "70" } array(2) { [0]=> string(7) "H7842-2" [1]=>
string(2) "64" } array(2) { [0]=> string(9
On Wed, Sep 17, 2008 at 4:21 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote:
> var_dump($i); looks messy, but I can see the server names in there and they
> are the correct names.
>
>
> "Micah Gersten" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> Do var_dump($i) in the loop to s
What is the key for the server name? That's what you need when you
output it.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vinny Gullotta wrote:
> var_dump($i); looks messy, but I can see the server names in there and
> they are the correct names.
>
>
> "
var_dump($i); looks messy, but I can see the server names in there and they
are the correct names.
"Micah Gersten" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Do var_dump($i) in the loop to see if you're getting the data you want.
Thank you,
Micah Gersten
onShore Networks
Int
""Dan Joseph"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta
<[EMAIL PROTECTED]>wrote:
What I want to do is find the top 10 servers where the column steps =
iisreset. The following code works great except that the page is not
displa
Do var_dump($i) in the loop to see if you're getting the data you want.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vinny Gullotta wrote:
> Still no luck displaying the stupid servername. Any other things I can
> try?
>
>
> "Micah Gersten" <[EMAIL PROTECT
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote:
> What I want to do is find the top 10 servers where the column steps =
> iisreset. The following code works great except that the page is not
> displaying the servername in the 'Server Name' column of my results (nothing
>
Still no luck displaying the stupid servername. Any other things I can try?
"Micah Gersten" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
You'll want to change your Order By statement to 'ORDER BY CountSteps
DESC'.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
ht
You'll want to change your Order By statement to 'ORDER BY CountSteps DESC'.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Vinny Gullotta wrote:
> echo $query;
>
> yields
>
> SELECT servername, COUNT(steps) as CountSteps FROM monitoring WHERE
> steps = 'IIS
""Dan Joseph"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Wed, Sep 17, 2008 at 2:30 PM, Vinny Gullotta
<[EMAIL PROTECTED]>wrote:
""Dan Joseph"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta
<[EMAIL PROTECTED]
On Wed, Sep 17, 2008 at 2:30 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote:
> ""Dan Joseph"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta <[EMAIL PROTECTED]
>> >wrote:
>>
>> What I want to do is find the top 10 servers where the
""Dan Joseph"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta
<[EMAIL PROTECTED]>wrote:
What I want to do is find the top 10 servers where the column steps =
iisreset. The following code works great except that the page is not
displa
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta <[EMAIL PROTECTED]>wrote:
> What I want to do is find the top 10 servers where the column steps =
> iisreset. The following code works great except that the page is not
> displaying the servername in the 'Server Name' column of my results (nothing
>
What I want to do is find the top 10 servers where the column steps =
iisreset. The following code works great except that the page is not
displaying the servername in the 'Server Name' column of my results (nothing
appears, the column is just blank).
servername and steps are the important col
20 matches
Mail list logo