max() problem


Posted on 16th Feb 2014 07:03 pm by admin

I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_image WHERE user='$user' AND ad='$adnr' ORDER BY `picorder` ASC")or die(mysql_error());
$totpics = mysql_num_rows($imagequery);
while ($imageset = mysql_fetch_array($imagequery)){
Did you know?Explore Trending and Topic pages for more stories like this.
$order= $imageset['picorder'];
$image= $imageset['image'];
$title= $imageset['title'];
$imagesize = getimagesize($modx->config['base_path'].'ad_images/'.$image);
$height = $imagesize[1];
}
How do I get the highest number of $height as
Code: $array = array($height);
echo max($array);does not work?
No comments posted yet

Your Answer:

Login to answer
154 Like 11 Dislike
Previous forums Next forums
Other forums

Mass activity scheduling
Hi experts,

Im facing some problems to deal with mass activity jobs.
When I run some

LOOPing Problem
Hello All!

The following code loops through the data and displays the data accordingly. My p

Problems generating word documents on server side for security reasons
I have a problem with word documentation generation when generating a word document (docx) with PHP.

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

Validation
Hello

I know this is a really vag question.

I need to have a input field on a form th

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

help retrieiving results and doing pagination
Having some trouble trying to get the results to show on more than just one page.

What is ha

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

How do I get the row number from from an sql table query
Hi all

I have a table that I query and it returns a number of rows.
mysql_num_rows($query)

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash