database error :S
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
//=============IP AND LOGIN SETTINGS OF SQL SERVER==============
// Enter the IP or DSN of the database server to connect to
$dbhost = "IP";
// Enter the username to connect to the db, default is sa
$dbuser = "sa";
// Enter the password for your SQL Server
$dbpasswd = "aapje";
//=============== NOT EDITABLE AREA ====================
// DEFAULT SETTINGS DO NOT CHANGE
$popup="<A HREF=javascript:popitup('gallery/";
$popup2="')>";
$image="<img src=gallery/";
$image2=" WIDTH='160' BORDER='0' HEIGHT='120'>";
$alogin = $dbuser;
$apass = $dbpasswd;
$db = 'grazy_chick';
$regsubmit = "regform.submit()";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
$ip = $host;
//========================END===========================
?>
//=============IP AND LOGIN SETTINGS OF SQL SERVER==============
// Enter the IP or DSN of the database server to connect to
$dbhost = "IP";
// Enter the username to connect to the db, default is sa
$dbuser = "sa";
// Enter the password for your SQL Server
$dbpasswd = "aapje";
//=============== NOT EDITABLE AREA ====================
// DEFAULT SETTINGS DO NOT CHANGE
$popup="<A HREF=javascript:popitup('gallery/";
$popup2="')>";
$image="<img src=gallery/";
$image2=" WIDTH='160' BORDER='0' HEIGHT='120'>";
$alogin = $dbuser;
$apass = $dbpasswd;
$db = 'grazy_chick';
$regsubmit = "regform.submit()";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
$ip = $host;
//========================END===========================
?>
Gewijzigd op 01/01/1970 01:00:00 door Jack
en geef je error ook eens, mn glazen bol is weer gejat
ip invullen waarschijnlijk localhost ofzo? Dus:
$dbhost = "127.0.0.1";
http://nl3.php.net/manual/nl/ref.mssql.php
http://nl3.php.net/function.mssql-connect
hij zegt:
Parse error: parse error, unexpected $ in /home/teamssx/domains/teamssx.nl/public_html/sanctity/index.php on line 593
das dit: </html>