• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Wanted: Service php help

Status
Not open for further replies.
Joined
Apr 4, 2005
Posts
336
Reaction score
30
Just had a mysql upgrade on server and throwing up following error.

Warning: number_format() expects parameter 2 to be long, string given in /home/umbriare/public_html/includes/templates/layout_view.php on line 11

Anyone know what I have to change in bolded line below.
Thanks

<?php

$layoutId = $cgi->getValue ( "id" );

$rows = $sql->execute ( "SELECT * FROM " . $property_table . " WHERE id=" .
$sql->quote ( $layoutId ) . " AND propertyshow=1 LIMIT 1",
SQL_RETURN_ASSOC );

$row = $rows [ 0 ];

$Price = number_format ( $row [ 'propertyprice' ], PRICE_FORMAT );
// This add a click to the property veiw total
$sql->execute ( "UPDATE " . $property_table .
" SET propertyviews=(propertyviews + 1) WHERE id=" .
$sql->quote ( $layoutId ) . " LIMIT 1" );
 
Cheers Nick, super quick answer and it works.
Many, many thanks:D
 
Status
Not open for further replies.
Top Bottom