![]() |
|
|||||||||
|
|||||||||
|
| Attention Visitor: |
| You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
||||||
| PHP DB Discutii despre lucrul cu baze de date in PHP. |
![]() |
|
|
Thread Tools | Moduri de afișare |
|
|
#1 |
|
8-Bit Member
|
...sa-mi spuna de ce nu merge urmatorul cod de php :
<?php class Php4{ var $sal='Salut PHP4'; function Salut(){ echo $sal; } } $s=new Php4; echo $s->Salut(); ?> Sunt noua pe aici si in php (doar html am facut putin pe la scoala si acum ma apucai de php ) ..deci sa nu radeti de mine si poate ma si ajuta careva !! Mersi mult !!
__________________
"There are no problems, only solutinos ! " (J.Lennon)
|
|
|
|
| Sponsored Links |
|
|
#2 |
|
32-Bit Member
Data înregistrării: 11.06.2006
Mesaje: 44
Rep Power: 6 ![]() |
ai gresit in functie..corect e:
function Salut(){ echo $this->sal; }
__________________
if (is_big($IQ)) { echo "dorian"; } )
|
|
|
|
|
|
#3 |
|
8-Bit Member
|
Mersi de raspuns ! e ok acum !
__________________
"There are no problems, only solutinos ! " (J.Lennon)
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Moduri de afișare | |
|
|