PLEASE [HELP] i have website error please

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 5, 2010
Messages
38
Reaction score
0
where should i put the links of my download here? please help and thanks in advance...

<?php include('./inc/header.php'); ?>
<h1>Game Download</h1>
<?php
odbc_exec($mssql, 'USE [WEBSITE_DBF]');
$check = odbc_exec($mssql, 'SELECT COUNT(*) as count FROM [web_downloads]');
if(odbc_result($check, 'count') > 0) {
?>
<table style="width: 100%;">
<tr>
<td style="width: 30px;"></td>
<td id="key">Title</td>
<td id="key">Description</td>
<td id="key" style="text-align: center;">Date</td>
</tr>
<?php
$query = odbc_exec($mssql, 'SELECT * FROM [web_downloads] ORDER BY datetime DESC');
while($result = odbc_fetch_array($query)) {
$description = $result['description'];
if(strlen($description) > 40) {
$description = substr($description, 0, 40).'...';
}
echo '<tr>
<td><a href="'.$result['link'].'" class="download"></a></td>
<td>'.$result['title'].'</td>
<td title="'.$result['description'].'">'.$description.'</td>
<td style="text-align: center;">'.date('Y-m-d', strtotime($result['datetime'])).'</td>
</tr>';
}
?>
</table>
<?php
} else {
echo '<div class="fail">Sorry, no downloads available!</div>';
}
?>
<?php include('./inc/footer.php'); ?>
 
Last edited:
Re: Please [HELP] i cant figure out whats wrong with my script :((

web_config no defined; view config,inc or config(php) in web site
 
Re: Please [HELP] i cant figure out whats wrong with my script :((

here's the line 10 on that error persist what should i erase or is there anything should i add?


$query = odbc_exec($mssql, 'SELECT COUNT(*) as count FROM [web_config] WHERE col=\''.mssql_escape_string($key).'\'');


and this is my config.inc.php

<?php
session_start();

// SQL Data
define('MSSQL_HOST', 'MY-PC\SQLEXPRESS'); // MsSQL Host
define('MSSQL_USER', 'sa'); // MsSQL Username
define('MSSQL_PASS', 'admin'); // MsSQL Password

// Connecting to MsSQL (ODBC)
$mssql = odbc_connect('Driver={SQL Server};Server='.MSSQL_HOST.';', MSSQL_USER, MSSQL_PASS);

// Including Files
include('functions.inc.php');

// Config
$_CONFIG['webtitle'] = getConfigValue('webtitle', ' Flyff Website');
$_CONFIG['forumlink'] = getConfigValue('forumlink', 'http://www.google.com');
$_CONFIG['pwdsalt'] = getConfigValue('pwdsalt', 'kikugalanet');
$_CONFIG['noreply'] = getConfigValue('noreplymail', '[email protected]');
$_CONFIG['ppemail'] = getConfigValue('ppemail', '[email protected]');

// Vote Sites (must be 3!)
$votelist1 = 'http://***************/index.php?do=votes&id=34758'; // Top of Games
$votelist2 = 'http://www.xtremetop100.com/in.php?site=1132323346'; // Xtreme Top 100
$votelist3 = 'http://www.gtop100.com/in.php?site=62923'; // G Top 100

// PaySafeCard: Euro => Points
$psc_values = array('10,00' => '1000', '25,00' => '2500', '50,00' => '5250', '100,00' => '11000');
?>
 
Last edited:
Re: Please [HELP] i cant figure out whats wrong with my script :((

hi

open your config.inc.php :
-"define('MSSQL_HOST', 'MY-PC\SQLEXPRESS');" replace with your-pc\sqlexpress ex: Sexytana\sqlexpress
-"define('MSSQL_PASS', 'admin'); // MsSQL Password" replace "admin" with you password of sql database


In your database,do you have table "web_news" , "web_download" , "web_malcategories" and "web_faq" ? look in web_site.dbf
in your files,you must have a web_site.bdf or a file.sql to insert in you db to add web_news etc...or create it.

pm me if you want help...
 
Re: Please [HELP] i cant figure out whats wrong with my script :((

i dont that all but the first 1 i use sa for my log in username and admin for my password ;(
 
Status
Not open for further replies.
Back