![]() |
|
|||||||||
|
|||||||||
|
| 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
Data înregistrării: 12.08.2006
Mesaje: 1
Rep Power: 6 ![]() |
Am shi eu o mica problema cu baza de date la mysql .
Cod PHP:
Care este problema ???
|
|
|
|
| Sponsored Links |
|
|
#2 |
|
32-Bit Member
|
Pai.. chiar asta e problema, nu ai selectat nici o baza de date ... foloseste si tu functia mysql_select_db() dupa mysql_connect().
Atunci cand apelezi mysql_connect() nu faci altceva decat sa deschizi o conexiune catre MySQL - care poate avea mai multe baze de date (iar tu poti avea acces la una sau mai multe din ele), MySQL nu are de unde sa stie pe care baza de date vrei tu sa rulezi query-ul respectiv. |
|
|
|
|
|
#3 | |
|
32-Bit Member
|
Eu vad ca are asa ceva
Citat:
|
|
|
|
|
|
|
#4 |
|
64-Bit member
Data înregistrării: 06.02.2006
Locație: Romania
Vârsta: 27
Mesaje: 227
Rep Power: 7 ![]() |
scoate @ din fata de la mysql_select_db(), pune la inceputul scriptului
Cod PHP:
le: care e faza cu <?php BEGIN__VBULLETIN__CODE__SNIPPET, la voi apare?
__________________
A good Manager will take you through the forest, no mater what. A Leader will take time to climb on a tree and say 'This is the wrong forest' blog.florindinu.ro - Another boring blog Last edited by outkast; 13.08.2006 at 18:52:19. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Moduri de afișare | |
|
|