Currenty in my Form, when I enter a price in the field and submit, it doesn't save what I've entered, it always displays 1 after submit.
So, I'm trying to determine where the defualt number is, so I can change it to .5. Here's the code relating to the Form page:
<input id="cost" input type ="number" step="0.50" placeholder="0.00" name="video_play_price" class="form-control input-md" value="{{video_play_price_user}}">

and

$min_price=$config[‘video_play_price’];
$temp_price = $videos[‘video_play_price’];
if ($temp_price<$min_price) { $temp_price = $min_price;}

$pt->content     = PT_LoadPage('edit-video/content', array(
    'ID' => $video->id,
    'USER_DATA' => $video->owner,
    'THUMBNAIL' => $video->thumbnail,
    'URL' => $video->url,
    'TITLE' => $video->title,
    'DESC' => br2nl($video->edit_description),
    'DESC_2' => $video->markup_description,
    'VIEWS' => $video->views,
    'TIME' => $video->time_ago,
    'TAGS' => $video->tags,
'video_play_price_user' => number_format( $video->video_play_price < $config['video_play_price'] ? $config['video_play_price'] : $video->video_play_price)
));

in the phpmyadmin db in the 'config' table, in the 'video_play_price' row it shows a value of "0.5"

what else should I check, to help solve this mystery?
I look forward to any guidance

chrisj number_format( $video->video_play_price < $config['video_play_price'] ? $config['video_play_price'] : $video->video_play_price)

$min_price=$config[‘video_play_price’];
$temp_price = $videos[‘video_play_price’];
if ($temp_price<$min_price) { $temp_price = $min_price;}

So is $config some sort of configuration? Maybe it holds default values?

    Write a Reply...