Phorum.ro
Your Avatar Welcome to Phorum.ro!
If you haven't registered yet, click here!
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.
Du-te înapoi   Phorum.ro > Web Design & Web Development > Programare > PHP > PHP DB

PHP DB Discutii despre lucrul cu baze de date in PHP.

Răspunde
 
Thread Tools Moduri de afișare
Vechi 13.04.2007   #1
Teodor
8-Bit Member
 
Data înregistrării: 31.03.2007
Mesaje: 8
Rep Power: 6
Teodor is on a distinguished road
Question CUm se creeaza o baza de date?!

ei bine, am un script pt muzica in php, si ma gandeam daca poate cineva sa ma ajute , de fapt sa explike un pik, cum sa creez baza de date... multumesc mult
Teodor is offline   Reply With Quote
Sponsored Links
Vechi 13.04.2007   #2
hts
128-Bit Member
 
hts's Avatar
 
Data înregistrării: 09.09.2005
Locație: Iasi
Vârsta: 22
Mesaje: 538
Rep Power: 7
hts is on a distinguished road
Implicit

pe lx, baza de date este deja creata..e una singura, mare si lata
numecont_subdomeniu_ro
hts is offline   Reply With Quote
Vechi 13.04.2007   #3
shogun
256-Bit Member
 
shogun's Avatar
 
Data înregistrării: 03.07.2005
Locație: Timisoara
Mesaje: 1.011
Rep Power: 8
shogun is on a distinguished road
Implicit

Te loghezi la adresa www.lx.ro/dbadmin si o gasesti in meniul din stanga.
__________________
Cel ce crede ca le stie pe toate mai are inca multe de invatat.
shogun is offline   Reply With Quote
Vechi 14.04.2007   #4
Teodor
8-Bit Member
 
Data înregistrării: 31.03.2007
Mesaje: 8
Rep Power: 6
Teodor is on a distinguished road
Implicit

dar daca am un alt host? referitor la lx cunosc, am vzt, pt ca am un forum gazduit pe lx...
Teodor is offline   Reply With Quote
Vechi 14.04.2007   #5
shogun
256-Bit Member
 
shogun's Avatar
 
Data înregistrării: 03.07.2005
Locație: Timisoara
Mesaje: 1.011
Rep Power: 8
shogun is on a distinguished road
Implicit

Citat:
În prealabil postat de Teodor
dar daca am un alt host? referitor la lx cunosc, am vzt, pt ca am un forum gazduit pe lx...
Atunci cu ajutorul lui phpMyAdmin pe care ti-l pun la dispozitie cei care iti ofera hostingul.
__________________
Cel ce crede ca le stie pe toate mai are inca multe de invatat.
shogun is offline   Reply With Quote
Vechi 14.04.2007   #6
gemacht
32-Bit Member
 
gemacht's Avatar
 
Data înregistrării: 30.12.2006
Locație: highway to HELL
Vârsta: 24
Mesaje: 131
Rep Power: 6
gemacht is on a distinguished road
Trimite un mesaj prin Yahoo pentru gemacht
Implicit

daca vrei sa iti creezi baza de date din scripturile tale php fa asa :

Cod PHP:
$sql="CREATE DATABASE `nume_baza_date`";
$rez=mysql_query($sql); 
si acelasi lucru il poti face la tabele .. dar acolo tre sa te uiti pe mysql.com sa vezi sintaxa ca is mai multe tipuri de date si trebe sa iti alegi ce iti trebe tie!

dar e mai bine sa lucrezi cu phpmyadmin...
__________________
be FREE to LIVE
gemacht is offline   Reply With Quote
Vechi 14.04.2007   #7
Zeon
32-Bit Member
 
Data înregistrării: 10.05.2006
Mesaje: 167
Rep Power: 7
Zeon is on a distinguished road
Implicit

Citat:
daca vrei sa iti creezi baza de date din scripturile tale php fa asa :

Cod PHP:
$sql="CREATE DATABASE `nume_baza_date`";
$rez=mysql_query($sql);

si acelasi lucru il poti face la tabele .. dar acolo tre sa te uiti pe mysql.com sa vezi sintaxa ca is mai multe tipuri de date si trebe sa iti alegi ce iti trebe tie!

dar e mai bine sa lucrezi cu phpmyadmin...
Nu cred ca vei reusi... eu cel putin pana acum nu am vazut nici un host care sa te lase sa creezi baze de date cu script "extern"
Zeon is offline   Reply With Quote
Vechi 14.04.2007   #8
xOrg
64-Bit member
 
Data înregistrării: 13.01.2007
Locație: ~
Vârsta: 18
Mesaje: 362
Rep Power: 6
xOrg is on a distinguished road
Implicit

Cele platite da...
xOrg is offline   Reply With Quote
Vechi 15.04.2007   #9
comandrei
32-Bit Member
 
comandrei's Avatar
 
Data înregistrării: 30.03.2006
Locație: 127.0.0.1
Vârsta: 21
Mesaje: 171
Rep Power: 7
comandrei is on a distinguished road
Talking

daca ai cpanel mergi la MySQL databases si acolo ai Create database
__________________
clog.ro - catalog virtual
comandrei is offline   Reply With Quote
Vechi 20.04.2007   #10
alfatech
32-Bit Member
 
Data înregistrării: 27.02.2007
Mesaje: 36
Rep Power: 6
alfatech is on a distinguished road
Unhappy Nu mai pot de nervi!!! plz, help!!!

Am incercat sa creez o baza de date cu comanda $sql="CREATE DATABASE `nume_baza_date`";
$rez=mysql_query($sql);
si mi-a dat o mare eroare!!!!

Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in d:\server\easyphp1-8\www\index.php on line 9

Warning: mysql_query(): A link to the server could not be established in d:\server\easyphp1-8\www\index.php on line 9

De la ce este???
alfatech is offline   Reply With Quote
Vechi 20.04.2007   #11
Zeon
32-Bit Member
 
Data înregistrării: 10.05.2006
Mesaje: 167
Rep Power: 7
Zeon is on a distinguished road
Implicit

mai intai trebuie sa te conectezi:

Cod PHP:
mysql_connect ($host$username$password); 
Zeon is offline   Reply With Quote
Vechi 18.05.2007   #12
edu2005eu
32-Bit Member
 
edu2005eu's Avatar
 
Data înregistrării: 20.03.2006
Vârsta: 20
Mesaje: 45
Rep Power: 7
edu2005eu is on a distinguished road
Implicit

cam asa ceva:
Cod PHP:
<?php
$host
="localhost";
$username="root";
$password="somepass";
mysql_connect ($host$username$password);
$sql="CREATE DATABASE `nume_baza_date`";
$rez=mysql_query($sql);
?>
asta e doar un exemplu. inlocuiesti host user si pass cu cele primite la inregistrare.
__________________
Keep on rockin' people!
edu2005eu is offline   Reply With Quote
Răspunde


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Moduri de afișare

Reguli de postare
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Pornit
emoticoanele sunt Pornit
Codul [IMG] este Pornit
Codul HTML este Oprit



Ora este GMT +3. Ora este acum 00:52:57.


Rulează cu: vBulletin Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

XXXXXXXXXXXXXXXXXXX
Inactive Reminders By Icora Web Design