Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Getting Started

phpMyEdit Configuration     Getting Started
Odoslať novú tému   Odpovedať na tému    
 
bmalex1     Založený: 23.02.2008   Príspevky: 3  
Príspevok Zaslal: 2008-02-23 22:29
Návrat hore  Odpovedať s citátom     

Greetings to All,

I hope I am in the right place.

I have just installed phpMyEdit and now need help with some config questions.

Can someone tell me how to link my config.inc page so that my password and other db info is not in generated code?

Also, I was trying to embed some html tags into the script. Where do I do this??

I am not real good with php classes but I can follow good instructions as far as coding.

Any help would be greatly appreciated.

Thanks

 
unitedintruth     Založený: 25.02.2008   Príspevky: 2  
Príspevok Zaslal: 2008-02-25 09:30
Návrat hore  Odpovedať s citátom     

Around line 40 or 45 of the main page generated by the script, you should see the database connection code. Something like this:

Kód:

// MySQL host name, user name, password, database, and table
$opts['hn'] = 'localhost';
$opts['un'] = 'db_username';
$opts['pw'] = 'db_password';
$opts['db'] = 'db_name';
$opts['tb'] = 'db_table';


Simply open a blank page in notepad or whatever editor you use and copy that connection code into it and save it as db_connect.php or whatever you want to call it (make sure you add "<?php" at the beginning and "?>"(without quotes) at the end to open and close php).

Then replace it with this:

Kód:

// Cteate Database Connection
require_once 'db_connect.php';


Of course replace 'db_connect.php' with whatever you name your page. Upload them both to the server.

That's it.

Hope That Helps,
Donnie

 
bmalex1     Založený: 23.02.2008   Príspevky: 3  
Príspevok Zaslal: 2008-02-27 06:46
Návrat hore  Odpovedať s citátom     

Thanks Donnie,

That worked just fine.

Can you tell me how to embed some html tags in the code? I want to put some headers in and also a graphic or two !

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov