PDA

View Full Version : Different Result


ayok
12-14-2007, 07:09 AM
Hi,
I've just created this website (http://www.bunakeninternational.nl/exim/index.html) (unfinished), but i've got problem with the product and project pages. Some pages cannot load swf and open database. I don't understand, because it works in my local server on my computer.

I work with dw cs3. Never had such problem with dw 8. Could anybody please help me out here?

Thanks,

ayok

edbr
12-14-2007, 08:32 AM
re the database I would check your connection scripts first

edbr
12-14-2007, 08:37 AM
jij heb ..a few... bahasa lain-lain ..daar op... your site

ayok
12-14-2007, 08:50 AM
Hehedbr.. as i said, it's not finished yet. at least you understand those language. :)

Any idea why it doesnt load the swf file?

here is my connection script
<?php
$db_link = mysql_connect("localhost", "bunaken", "");
if (!$db_link) {
die("Could not connect: " . mysql_error());
}
mysql_select_db("bunaken") or die("Could not select database");
?>

Thanks

ayok

edbr
12-14-2007, 09:19 AM
you aren't getting an error showing are you? so I am wrong about that . Have you set permissions for the user?

ayok
12-14-2007, 02:27 PM
No i got no database error. Which folder should I set the permissions?

The pages work on my local server, but not on the web server.

ayok
12-14-2007, 03:41 PM
Now the swf file appears on those pages after I re-uploaded it with other ftp tool (not dreamweaver). What's wrong with dw cs3?

ayok
12-15-2007, 07:57 PM
Anotherpage (http://www.bunakeninternational.nl/exim/project/index.php). On this page, you can find some company projects which are taken from mysql database. But I cannot get the data when I clicked on one of the project. No data is selected in the next page. However, the script is working properly if I tested it on my localhost.

Here is the php script on index.php
<?php
include "../../dbconnect/koneksi_db.php";
$result=mysql_query("SELECT * FROM project");
while ($data=mysql_fetch_array($result))
{
echo "<a href=detail.php?id=$data[proj_no]>$data[title] - $data[company]</A><BR>";
}

From this index page, we can click on one of the links to the project detail which goes to detail.php.

<?php

include "../../dbconnect/koneksi_db.php";
$result = mysql_query("SELECT * FROM project WHERE proj_no='$id'") or DIE(mysql_error());
$data = mysql_fetch_array($result);
$body_project = nl2br($data[body]);

echo "<h1 align='center'>$data[title]</h1>";
echo "Begin: $data[year]<br>Status: $data[status]<br>Bedrijf: $data[company]<br>";
echo "<p>$body_project</p>";
echo "<a href='file/$data[file]'>dossier downloaden<br>";
echo "<a href='index.php'>terug naar projecten</a>";
?>
In this page, the information cannot be shown in the browser.

Could anybody help me to find out what's wrong?

Thanks,
ayok

ayok
12-16-2007, 05:56 AM
nevermind, it's solved.
Thx.