Crearea unei baze de date
Stefanescu Mihai 3 years ago PHP
Acest articol face parte din cursul Toate lectiile PHP.
Te poti inscrie la acest curs aici!
Pentru a crea sau sterge o baza de date trebuie sa aveti privilegii de administrator. Este usor sa creezi o noua baza de date MySQL. Puteti folosi functia query().
Sintaxa:
$mysqli->query( query-ul );
Exemplu:
<?php $host = 'localhost'; $user = 'user'; $pass = 'parola'; $conn = new mysqli($host, $user, $pass); if ($conn->connect_errno) { echo "Nu ma pot conecta: (" . $conn->connect_errno . ") " . $conn->connect_error; } echo 'M-am Conectat'; $sql = 'CREATE Database test_mike'; $retval = $conn->query($sql); if( !$retval ){ die('N-am putut crea baza de date: '); } echo "Baza de date test_mike a fost creata\n"; $conn->select_db('test_mike'); $conn->close(); ?>
Explicatii:
In primul rand am m-am conectat la baza de date folosind new mysqli(‘host’, ‘user’, ‘parola’), iar apoi am creat o noua baza de date folosind un query SQL (Vezi lectii SQL). Dupa ce am creat baza de date am selectat-o folosind functia select_db( ‘baza de date’ );
Get in touch
Pentru nelamuriri, dubii, comentarii si chestii de pe suflet ne putem auzi pe Discord, Reddit sau poti deschide o discutie noua pe forum
Zgnjfo
#
3 months ago
order tricor sale <a href="https://fenoficor.com/">tricor over the counter</a> fenofibrate 160mg generic
brand zaditor <a href="https://geozipin.com/">ziprasidone generic</a> order imipramine 25mg without prescription
precose for sale <a href="https://tofobose.shop/">order acarbose 25mg</a> buy fulvicin generic
mintop online buy <a href="https://aminirin.com/">minoxytop where to buy</a> medicine for erectile
where to buy melatonin without a prescription <a href="https://danaterone.com/">buy danocrine pills for sale</a> danazol 100mg generic
pill florinef 100 mcg <a href="https://acipolax.com/">order rabeprazole for sale</a> generic loperamide 2 mg
dydrogesterone ca <a href="https://janozin.shop/">order forxiga pills</a> cost jardiance
buy prasugrel 10mg generic <a href="https://detorbic.com/">buy detrol cheap</a> buy generic detrol over the counter
etodolac pills <a href="https://colotazol.shop/">pletal 100mg ca</a> buy cilostazol without prescription
order generic enalapril 10mg <a href="https://casosin.shop/">order doxazosin 2mg</a> duphalac where to buy
order mestinon 60mg generic <a href="https://aelimax.com/">order maxalt online</a> purchase rizatriptan online cheap
betahistine 16 mg pill <a href="https://duphstine.shop/">oral betahistine 16 mg</a> probenecid 500mg pills
zovirax online buy <a href="https://aexeloda.shop/">buy generic exelon for sale</a> order rivastigmine online cheap
brand micardis <a href="https://molnenil.shop/">molnunat 200mg usa</a> order molnupiravir 200 mg without prescription
cheap cenforce <a href="https://enapocen.com/">order generic cenforce</a> chloroquine where to buy
purchase amantadine for sale <a href="https://atenulfon.shop/">avlosulfon 100 mg cheap</a> generic dapsone
methylprednisolone 8mg over counter <a href="https://arisceon.com/">triamcinolone 4mg ca</a> order triamcinolone online cheap
clomid 100mg sale <a href="https://azatophene.shop/">buy azathioprine 50mg pills</a> imuran cheap
buy generic vardenafil for sale <a href="https://atizordis.com/">tizanidine generic</a> buy tizanidine online cheap
order perindopril 4mg online <a href="https://claegra.shop/">fexofenadine 180mg canada</a> buy allegra 180mg online
loratadine 10mg canada <a href="https://loraitace.shop/">oral ramipril</a> priligy 90mg usa
baclofen 25mg generic <a href="https://alenolac.com/">ketorolac over the counter</a> buy toradol pills
buy generic lioresal over the counter <a href="https://alenolac.com/">ketorolac oral</a> order toradol 10mg generic
buy glimepiride cheap <a href="https://arcotecgn.com/">cytotec pill</a> etoricoxib for sale online
buy alendronate no prescription <a href="https://macroicine.shop/">furadantin 100 mg sale</a> buy nitrofurantoin 100 mg pills
order inderal 10mg without prescription <a href="https://propofen.com/">order inderal 20mg without prescription</a> clopidogrel 75mg canada
order pamelor generic <a href="https://nortogrel.shop/">pamelor medication</a> how to get acetaminophen without a prescription
buy warfarin for sale <a href="https://wafetine.com/">order medex generic</a> purchase maxolon for sale
buy azelastine 10 ml online cheap <a href="https://acypapro.shop/">avapro oral</a> purchase avalide
order pepcid 20mg sale <a href="https://cozolimus.com/">hyzaar over the counter</a> buy cheap prograf
generic zyloprim 100mg <a href="https://rosuirone.com/">rosuvastatin 10mg us</a> buy rosuvastatin generic
buy imitrex <a href="https://aleoflox.com/">levofloxacin 250mg canada</a> purchase dutasteride sale
buy buspirone 10mg without prescription <a href="https://ezetdarone.com/">brand ezetimibe 10mg</a> buy amiodarone paypal
motilium 10mg us <a href="https://domedilol.shop/">buy coreg 25mg sale</a> buy tetracycline 250mg generic
research papers writing <a href="https://essaystada.com/">essay buy online</a> order an essay online
aurogra 50mg over the counter <a href="https://asidast.com/">sildalis drug</a> estrace 1mg oral
diflucan 100mg uk <a href="https://cixacina.com/">baycip price</a> baycip uk
where to buy tretinoin without a prescription <a href="https://abvatol.com/">avana 200mg drug</a> purchase avanafil without prescription
buy cleocin 300mg without prescription <a href="https://cleamyc.com/">buy cheap cleocin</a> buy fildena sale
brand nolvadex 10mg <a href="https://batanine.com/">betahistine 16mg us</a> order symbicort generic
ceftin 500mg drug <a href="https://acaropro.com/">bimatoprost tablet</a> robaxin oral
cheap essay writing <a href="https://cepraol.com/">brand cefixime 200mg</a> buy cefixime 100mg generic
buy term papers online <a href="https://onlineslotjo.com/">100 most popular free slots</a> online blackjack for money
buy trimox <a href="https://tricilol.com/">purchase trimox pills</a> where to buy biaxin without a prescription
calcitriol 0.25 mg price <a href="https://trandetal.com/">labetalol uk</a> tricor cheap
order clonidine 0.1mg online cheap <a href="https://cloprebol.com/">order catapres 0.1 mg generic</a> tiotropium bromide 9 mcg cost
best acne medication for men <a href="https://bestacnetreat.com/">best acne treatment for adults</a> purchase oxcarbazepine generic
minomycin brand <a href="https://hyraztin.com/">purchase hytrin online</a> buy generic requip over the counter
alfuzosin 10 mg sale <a href="https://auroxsin.com/">uroxatral 10 mg price</a> prescribed medication for stomach pain
Скорозагружаемые здания: бизнес-польза в каждом блоке!
В современной сфере, где секунды - доллары, здания с высокой скоростью строительства стали реальным спасением для коммерческой деятельности. Эти новейшие строения включают в себя твердость, финансовую эффективность и скорость монтажа, что позволяет им отличным выбором для коммерческих мероприятий.
<a href=https://bystrovozvodimye-zdanija-moskva.ru/>Быстровозводимые здания работы</a>
1. Срочное строительство: Моменты - наиважнейший аспект в деловой сфере, и быстровозводимые здания позволяют существенно сократить время монтажа. Это чрезвычайно полезно в вариантах, когда необходимо оперативно начать предпринимательскую деятельность и начать получать доход.
2. Экономия: За счет совершенствования производственных операций по изготовлению элементов и монтажу на площадке, цена скоростроительных зданий часто уменьшается, по сопоставлению с обыденными строительными проектами. Это позволяет сэкономить средства и обеспечить более высокий доход с инвестиций.
Подробнее на <a href=https://bystrovozvodimye-zdanija-moskva.ru/>http://scholding.ru</a>
В заключение, скоро возводимые строения - это превосходное решение для коммерческих задач. Они сочетают в себе молниеносную установку, эффективное использование ресурсов и надежность, что позволяет им превосходным выбором для компаний, готовых начать прибыльное дело и гарантировать прибыль. Не упустите момент экономии времени и средств, прекрасно себя показавшие быстровозводимые сооружения для вашего следующего начинания!
purchase femara <a href="https://afemazol.com/">letrozole 2.5 mg us</a> where to buy aripiprazole without a prescription
buy sleeping tablets uk online <a href="https://weightlossots.com/">doctor prescribed weight loss programs</a> ordering weight loss medication online
buy medroxyprogesterone <a href="https://bilziquan.com/">buy generic biltricide 600 mg</a> hydrochlorothiazide for sale online
buy cheap generic periactin <a href="https://nizinazole.com/">buy ketoconazole medication</a> order ketoconazole online cheap
medication to prevent herpes outbreaks <a href="https://andiabeps.com/">best diabetes medicine type 2</a> why is ozempic so popular
buy duloxetine sale <a href="https://glucoide.com/">glucotrol uk</a> buy modafinil 100mg
antifungal pills over the counter <a href="https://xpantifungusp.com/">walmart fungus clear</a> what can i do to lower my blood pressure immediately
order promethazine online cheap <a href="https://prostmecl.com/">order stromectol 6mg pill</a> ivermectin where to buy for humans
peptic ulcer disease clinical guidelines <a href="https://aheartop.com/">high blood pressure treatment online</a> different types of uti bacteria
do acid reducers affect digestion <a href="https://abheartburnp.com/">prescribed medicine for acid reflux</a> pills that help with farting