maar zodra ik mijn site wil openen zegt ie
Code: Selecteer alles
Parse error: parse error in /dev/includes/functions.php on line 544
Warning: Cannot add header information - headers already sent by (output started at /dev/includes/functions.php:544) in /dev/includes/sessions.php on line 182
Warning: Cannot add header information - headers already sent by (output started at /dev/includes/functions.php:544) in /dev/includes/sessions.php on line 183
hier is regel 512 tot 554 want ik denk dat die vorige er ook bij hoort ivm het if <-> else
wie o wie ?
Code: Selecteer alles
//-- mod : profile cp ------------------------------------------------------------------------------
//-- delete
// for($i = $total_pages - 2; $i < $total_pages + 1; $i++)
// {
// $page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- add
for($i = $total_pages - 2; $i < $total_pages + 1; $i++)
{
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&$start_field=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------
if( $i < $total_pages )
{
$page_string .= ", ";
}
}
}
}
//-- mod : profile cp ------------------------------------------------------------------------------
//-- delete
// else
// {
// for($i = 1; $i < $total_pages + 1; $i++)
// {
// $page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- add
else
{
for($i = 1; $i < $total_pages + 1; $i++)
{
// here we replaced
// start
// with
// $start_field
//-- modify
$page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . append_sid($base_url . "&$start_field=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>';
//-- fin mod : profile cp --------------------------------------------------------------------------