jonny5771 Posted September 7, 2007 Share Posted September 7, 2007 I have a flash portal and I need to redesign the layout so I can add pics, links, background ect... but when I insert the php code into a web builder like dreamweaver or front page. It doesn’t show the page in the design aria as is dose on the web page. Here is the portal.php code so you may try. portal.php <html> <head> <title>Flash Portal</title> </head> <body> <?php require("dbconnect.php"); echo("<font size='4'><strong>15 Most Recent</strong></font>"); //displays most recent flash using a while loop $query = "SELECT * FROM flash ORDER BY flashid DESC LIMIT 15"; $result = mysql_query($query); $i = 0; while ($row = mysql_fetch_array($result)) { //increases printed number for flash by one $i++; //declare varibles $score = stripslashes($row['score']); $title = $row['title']; $flashid = stripslashes($row['flashid']); //print flash submission echo($i); echo(" - "); echo("<a href='view.php?id="); echo($flashid); echo(">$title</a>"); //tells if submission is excellent (score higher than 7.0), okay (score between 3.0 and 7.0), or bad (score lower than 3.0) if ($score <= 3.0) { echo("(Bad!)"); } else if ($score > 3.0 && $score <= 7.0) { echo("(Okay)"); } else if ($score > 7.0) { echo("(Excellent!)"); } echo("<br>"); } echo("<font size='4'><strong>15 Most Viewed</strong></font>"); //displays 15 most viewed flash $query = "SELECT * FROM flash ORDER BY views DESC LIMIT 15"; $result = mysql_query($query); $i = 0; while ($row = mysql_fetch_array($result)) { //increases printed number for flash by one $i++; //declare varibles $score = stripslashes($row['score']); $title = $row['title']; $flashid = stripslashes($row['flashid']); //print flash submission echo($i); echo(" - "); echo("<a href='view.php?id="); echo($flashid); echo(">$title</a>"); echo("<br>"); } echo("<font size='4'><strong>Top 15</strong></font>"); //displays 15 top flash (ordered by highest score) $query = "SELECT * FROM flash ORDER BY score DESC LIMIT 15"; $result = mysql_query($query); $i = 0; while ($row = mysql_fetch_array($result)) { //increases printed number for flash by one $i++; //declare varibles $score = stripslashes($row['score']); $title = $row['title']; $flashid = stripslashes($row['flashid']); //print flash submission echo($i); echo(" - "); echo("<a href='view.php?id="); echo($flashid); echo(">$title</a>"); echo("<br>"); } //finish up page by adding end tags ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/68378-can-you-edit-php-code-in-a-web-builder/ Share on other sites More sharing options...
golles Posted September 7, 2007 Share Posted September 7, 2007 the programs can's handle php, they can highlight the code, but you need a web server to test them on. hmm, if I'm correct you can get it working in Dreameweaver, but you need to configure dreamweaver (google howto, I don't know it) I have installed wamp so I have a local web server, I use it for testing my files. good luck //golles Quote Link to comment https://forums.phpfreaks.com/topic/68378-can-you-edit-php-code-in-a-web-builder/#findComment-343794 Share on other sites More sharing options...
jonny5771 Posted September 7, 2007 Author Share Posted September 7, 2007 i googled it but cant find. any one els know how i can do this? Quote Link to comment https://forums.phpfreaks.com/topic/68378-can-you-edit-php-code-in-a-web-builder/#findComment-343900 Share on other sites More sharing options...
golles Posted September 7, 2007 Share Posted September 7, 2007 I also looked, there is a menu option in dreamweaver called site, but I think you need a webserver, I would advise you download and install wamp, then you have your server runing in about a minute. Quote Link to comment https://forums.phpfreaks.com/topic/68378-can-you-edit-php-code-in-a-web-builder/#findComment-343943 Share on other sites More sharing options...
sneamia Posted September 7, 2007 Share Posted September 7, 2007 If you have a webhost, set up Sites in Dreamweaver, and add a testing server. Usually I don't do this. I don't use the shitty browser Dreamweaver provides because usually I want to see what my code looks like in a real browser. I just save (auto-upload on save) and refresh that page in Opera/FF and see changes. Quote Link to comment https://forums.phpfreaks.com/topic/68378-can-you-edit-php-code-in-a-web-builder/#findComment-343957 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.