Quote:
Originally Posted by Krunky
You won't need DNS. You need to explain a little better of what your problem is. Are you trying to host the registration page?
You will need to tell the client to look for the new skills. I can't baby you through this.
Like I said above, you need to tell the client to Look / load the information. I can't help you with this, hence I'm too busy with tutorial writing, homework, and my own server.
|
I'm confused)))
If you do not need a DNS, how to connect to the MSSQL PHP script?
Here's a standard script
PHP Code:
function formStep3(){
$errors = array();
$errorStr = null;
$strSql="select * from Tbl_user where user_id='$_POST[username]'";
if ($_POST[ZoneGroup]=="zone1") {
$account_odbc = odbc_connect('account','DkServer','MyPass');
} elseif ($_POST[ZoneGroup]=="zone2") {
$account_odbc = odbc_connect('account2','DkServer','MyPass');
} else {
die ("<p><b>分区选择错误!</b></p>");
}
$user_result=odbc_do($account_odbc,$strSql);
$result_query=odbc_fetch_row($user_result);
Start, writes
PHP Code:
Warning: odbc_connect () [function.odbc-connect]: SQL error: [Microsoft] [Driver Manager ODBC] etc.
ie Not found the driver
Said the driver, rewrote the script a bit ...
PHP Code:
function formStep3(){
$errors = array();
$errorStr = null;
$strSql="select * from Tbl_user where user_id='$_POST[username]'";
if ($_POST[ZoneGroup]=="zone1") {
$account_odbc = odbc_connect("Driver={SQL Server};DSN=".$dsn.";Server=".$db_host.";Database=".$db_name,$db_user,$db_pwd);
} elseif ($_POST[ZoneGroup]=="zone2") {
$account_odbc = odbc_connect("Driver={SQL Server};DSN=".$dsn.";Server=".$db_host.";Database=".$db_names,$db_user,$db_pwd);
} else {
die ("<p><b>分区选择错误!</b></p>");
}
$user_result=odbc_do($account_odbc,$strSql);
$array_query=odbc_fetch_row($user_array);
config.php - dns
PHP Code:
$dsn ="DRIVER={SQL Server};" .
"CommLinks=tcpip(Host=$db_host);" .
"DatabaseName=$db_name;" .
"uid=$db_user; pwd=$db_pwd";
What I have not done? give at least an example of a script =(
And please reply to another question, what the customer / client is better to use?
What you could unpack the *. pak file.
Preferably the English version
And then dekaron extreme does not work = (
Thank you =)