klava Posted March 12, 2006 Report Share Posted March 12, 2006 (edited) Es vienreiz nolemu uzlikt guestbooku. Uzliku apache php un mysql. Nokonfigureju pec tutriala. Tagad instilejot guest booku map prasa database name. Es noprotu ka man vina ir jauztaisa. Bet kaa. Kas jaaraksta tajaa mysql cmd. Un tad man prasa user kas jaraksta tur. Piedodiet par tik stulbiem jautajumiem. Ja tas ir parak gari jaaskaidro tad varetu iedot kadu tutorialu. Velams lv valodaa bet ja nav tad deres eng. Man ir shads kods. Nu sry es esmu tik stulbs ka nemaku pat lasi, bet gribu uzlikt gb. Kas man sheit ir japraveido? Es sapratu ka pie pass ir jaieraksta parole ko es ievadiju instieljot mysql.Ko taalaak? <?php $host = "localhost"; $user = 'root'; $pass = 'klava'; //S(eit raksta-m paroli, ko tu ievadi-ji instale-jot MySQL $link = mysql_connect($host, $user, $pass); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully<br>Pieejams datu baazes:<br>'; $db_list = mysql_list_dbs($link); while ($row = mysql_fetch_row($db_list)) { echo $row[0]."<br>"; } mysql_close($link); ?> Edited March 12, 2006 by klava Link to comment Share on other sites More sharing options...
v3rb0 Posted March 12, 2006 Report Share Posted March 12, 2006 create database un create table jāraksta tur http://www.google.lv/search?hl=lv&q=mysql+manual Link to comment Share on other sites More sharing options...
Klez Posted March 13, 2006 Report Share Posted March 13, 2006 kaads sakars datu baazeem ar HTML un XHTML ? man liekas ka topika autoraam vaik briidinaajumu, jau otrais topiks zem shiis sadaljas un ne par teemu shis un http://php.lv/f/index.php?showtopic=4205 Link to comment Share on other sites More sharing options...
Recommended Posts