Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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.

Rule #1: Be Respectful

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

Members online

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Systreg AcornBot:
    Systreg has left the room.
      Systreg AcornBot: Systreg has left the room.
      Top Bottom