Jump to content


djalma_bina

Member Since 20/05/2006
Offline Last Active 04/02/2011, 10:40
-----

Posts I've Made

In Topic: Erro Em Max() E Min() No Php 5.2.6

01/03/2010, 16:02


No debug da página o Firefox retorna estes warnings explicando o
que falta :

<b>Warning</b>: max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>39</b><br />
<br />
<b>Warning</b>: max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>40</b><br />

<br />
<b>Warning</b>: max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>41</b><br />
<br />
<b>Warning</b>: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>42</b><br />

<br />
<b>Warning</b>: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>43</b><br />
<br />
<b>Warning</b>: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>44</b><br />

GMaps.marker(52.7293,-117.644,'spot','');
GMaps.marker(52.7286,-117.644,'spot','');
GMaps.marker(52.7285,-117.645,'spot','');
GMaps.marker(52.728,-117.645,'spot','');
GMaps.marker(52.7279,-117.646,'spot','');
GMaps.marker(52.728,-117.646,'spot','');
GMaps.marker(52.7277,-117.645,'spot','');
E T C .....................

Os valores são passados para função GMaps.marker em
http://trekhotel.com.../gmaps.php?r=46
Obrigado !


In Topic: Erro Em Max() E Min() No Php 5.2.6

27/02/2010, 23:24

Desculpe insistir, eu não entendi o que voce quer dizer, que valor seria este?
Segundo o Manual oficial do PHP, http://php.net as funções max() e min() pedem arrays como parametros.
Obrigado.

IPB Skin By Virteq