Jump to content


Photo

Maxwebportal!


  • Faça o login para participar
1 reply to this topic

#1 Dark_aioria

Dark_aioria

    Novato no fórum

  • Banidos
  • 1 posts
  • Sexo:Não informado

Posted 02/07/2004, 23:03

Gente baixei um Portal, em casa configuro ele direitinho, pega na bele, mais quando faço upload :shit: aquela porcaria não pega nem a pau, aí vai o código!

<%
on error resume next
Session.LCID = 1033
Response.Buffer = true

dim strDBType, strConnString, strTablePrefix, strMemberTablePrefix '## Do Not Edit

'#################################################################################
'## SELECT YOUR DATABASE TYPE AND CONNECTION TYPE (access, sqlserver or mysql)
'#################################################################################
'strDBType = "sqlserver"
'strDBType = "access"
'strDBType = "mysql"

'## Make sure to uncomment one of the strConnString lines!
strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\inetpub\wwwroot\maxwebportal\database\db2000.mdb" '## MS Access 97
'strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database/db2000.mdb") '## MS Access 2000 using virtual path
'strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\maxwebportal\database\db2000.mdb" '## MS Access 2000
'strConnString = "Provider=SQLOLEDB;Data Source =SQLServer or IP;Initial Catalog=database name;UID=SQL User;PWD=SQL password" 'SQL Server
'strConnString = "driver=MySQL;server=SERVER_NAME;uid=MYSQL_USER;pwd=PARRWORD;database=DATABASE_NAME" '## MySQL

'strWebMaster should always end with a comma
strWebMaster = "admin,"
strShowImagePoweredBy = "0"
'#################################################################################
'## Do Not Edit Below This Line - It could destroy your database and lose data
'#################################################################################
strTablePrefix = "PORTAL_"
strMemberTablePrefix = "PORTAL_"


Bem o código é esse, mais quando faço upload, ele não consegue abrir o banco de dados! ME AJUDEM PLZ, quero mt esse portal!

Vlw Abraços!

#2 Strayer

Strayer

    Novato no fórum

  • Banidos
  • 6 posts
  • Sexo:Não informado

Posted 13/07/2004, 02:26

Bem já q ninguém ajuda aki né, aí vai a resposta!


'strDBType = "sqlserver"
strDBType = "access"
'strDBType = "mysql"

'## Make sure to uncomment one of the strConnString lines!
'strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\inetpub\wwwroot\maxwebportal\database\db2000.mdb" '## MS Access 97
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database/db2000.mdb") '## MS Access 2000 using virtual path

Só modifique as ' ' ' ' ' ' vc colocou errado é só modificar!

Abraços!




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq