Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Daily Diamond

Wanted: Domain anyone bored? Need help

Status
Not open for further replies.

Nexmax

Level 8
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.
 
Domain Days 2024

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
Sure what do you have so far
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
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 ?
 

Nexmax

Level 8
Legacy Platinum Member
Joined
Oct 7, 2002
Messages
2,209
Reaction score
0
<?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"; ?>
 

jdk

DNF Addict
Legacy Exclusive Member
Joined
Jul 23, 2004
Messages
6,350
Reaction score
24
Did you try line 35 without the @ and just use mysql_connect?
 

Nexmax

Level 8
Legacy Platinum Member
Joined
Oct 7, 2002
Messages
2,209
Reaction score
0
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.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom