• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Domain anyone bored? Need help

Status
Not open for further replies.

Nexmax

New Member
The Originals
Legacy Platinum Member
Joined
Oct 7, 2002
Messages
2,209
Reaction score
0
I just got a million dollar home page script and having problems all over the place. Any problem solvers in search of a problem. Getting syntax errors and think admin needs to be made into a folder. Yet another "beta" script on the market with poor instructions and no support. Help please.
 
Sure what do you have so far
 
Show clicks I get an error:
Parse error: parse error, unexpected T_STRING in /home/centhome/public_html/showclicks.php on line 35

Can you post the code for showclicks.php ?
 
<?php include "header.php"; ?>



<table width="1000" border=0 align="center" cellpadding=0 cellspacing=0>

<tr>

<td width=150 background="images/grid1.gif" style="border-left: 1px solid #423837;">&nbsp;</td>

<td width=20 bgcolor=#CCCCCC>&nbsp;</td>

<td width=600 bgcolor=#CCCCCC> <br><H2>View Image Clicks</H2>

<HR class=c> <p>Here you can see just how many clicks each image has received:</p>

<P>

<?php







// if id is set then get the file with the id from database







$cn = @mysql_connect('localhost','centhome_user,'yes');







$database = @mysql_select_db('centhome_db',$cn);







$id = $_GET['id'];







$query = "SELECT id, url, title, img_name, img_type, img_filesize, img_content, clicks FROM area";







$result = mysql_query($query) or die('Error, query failed');







$arr = array();







echo "<table width='100%'><tr><td width='60%'>Title</td><td width='20%'>Image name</td><td width='20%'>Clicks</td></tr>";







while($r = mysql_fetch_assoc($result)){







echo "<tr>";







echo "<td width='60%'><a href=".$r['url']." target=\"_blank\">".$r['title']."</a></td><td width='20%'><a href=showimage.php?s=".$r['id']." target=\"_blank\">".$r['img_name']."</a></td><td width='20%'>".$r['clicks']."</td>";







echo "</tr>";







}







echo "</table>";







?>

<br>

<br>

<br>

<br> <br>

<br>

<br> <br>

<br> <br>

<br> <br>

<br> <br>

<br> <br>

<br><br> <br>

<br> <br>

<br> <br>

<br> <br>

<br>

<HR class=c> <DIV id=grey>This page last updated: 30th Sept 2005</DIV></td>

<td width="150" background="images/grid1.gif" style="border-right: 1px solid #423837;">&nbsp;</td>

</tr>

</table>



<?php include "footer.php"; ?>
 
Did you try line 35 without the @ and just use mysql_connect?
 
Yes that didn't work, looks like a missing field in db

Unknown MySQL Server Host 'centhome_db' (1) in /home/centhome/public_html/showclicks.php on line 43

centhome_db does not exist as database file, though it does as directory with some db's in it.
 
Status
Not open for further replies.
Back
Top Bottom