Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

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.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom