PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
// *HOST* *link_display* *Password* *Database*
function db() {mysql_pconnect("localhost","lsscript","tv781212");mysql_selectdb("lsscript_lstestimonials");
}
function db_close() {
mysql_close();
}
/*
//Bellow will be used for LS Testimonials Version 2.0
//-----------------------
// Database config
//-----------------------
// The server your databse is on. This is usually localhost
$DB_host = "localhost";
// The username used to access your database
$DB_user = "";
// The password used for this username
$DB_pass = "";
// The name of the database LS Testimonials is installed on
$DB_name = "";
// If you want to add a prefix to the table names. Otherwise
// leave blank
$DB_prefix = "lst_";
// If your database runs under a persistant connection.
// Note leave this as 0 unless you know what you are doing.
$DB_pconnect = 0;
*/
//----------------------
// General config
//----------------------
// The full URL to the directory LS Testimonials is in.
// Make sure you do not include a trailing slash '/'
$URL_maindir = "//www.lsscripts.com/lst";
// The directory that the files are located in. Make sure
// you include a / at the beginning and end of the
// directory name. If it is in a sub domain just use one /
$URL_dir = "/lst/";
// This path is the full server path to your LS Testimonials
// directory (excluding the trailing slash '/'). If you are using
// a *nix server you can use $_SERVER["DOCUMENT_ROOT"] to get to
// your web directory but Windows does not seem to recognise this
// function.
$LST_path = $_SERVER["DOCUMENT_ROOT"]."/lst";
// The name of your company. This will appear in the
// title of any visable pages.
$COMPANY_name = "LS Testimonials";
// The admin email of your company. This e-mail address
// will be used in all automatic e-mails that are sent
// from LS Testimonials
$COMPANY_email = "admin@example.com";
/*
// The skin you want to use
$SKIN_name = "default";
// The language that will be used for the client side. Use the name
// of the language file. e.g. if you are using spanishlang.php, in
// the language setting put spannishlang
$LANG_setting = "english";
// To check for updates on the control panel homepage, set to true,
// otherwise set to false. Setting this to true will enable LS Testimonials
// to collect information about your website (which will not be distributed
// to third parties) in order to produce usage statistics etc.
// None of the information collected will be used in any unlawful ways.
$lst_update = "true";
*/
?>
Lucnet.... You honestly need to look take a look at the manual and understand how PHP works. You are trying to edit someone else's code it seems but not understanding what it is doing.
I don't mind answering your questions. But if you learn the basics you will not need to show 100 lines of code... and there will not be multiple syntax problems...
Read up on standard usage, how to include files, functions and variables. And good form... then tackle harder stuff...
It's a corny suggestion i know, but you need to take the time and get it first.