Jump to content
php.lv forumi

Notice: Undefined variable: pageEcho


Recommended Posts

Posted (edited)

$result = mysql_query('select count(id) from '.$db_prefix.'users where id != 1;');
	$total = mysql_fetch_array($result);
$pages = $total[0]/12;
for ($i = 1; $pages > 1; $pages--) {
			$pageEcho .='<u><a href=\'index.php?page=users&order=1\'><font size=\'3\'>'.$i.'</font></a></u> ';
		$i ++;
	}

Kā definēt $pageEcho ,bet lai iekš viņa nekā nebūtu ,jo vēlos izmantot ".="?

 

error_reporting = E_ALL & ~E_NOTICE neapmierina!

Edited by Wuu
Posted (edited)
$blablabla = null; //bubu saka, ka vajag $blablabla = '';
for (...) {
$blablabla .= 'dgdgdgdgg';
}

Edited by Val
Posted

Nevis null jāliek, bet gan tukšs strings "" kā sākuma vērtība.

Undefined offset: 0 nozīmē, ka tu vērsies pie masīva pēc atslēgas 0, taču tur tāda elementa nav.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...