Jump to content

jonny5771

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jonny5771's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. sorry i dont get ya. what do i do?
  2. How do I keep the page in the middle when you click the "restore down" button witch is just to the right of the minimize button. e.g. http://www.virginmedia.com when you make the page smaller the edge cuts out but the main bits stay in the centre. How do I do this?
  3. Basically all I am looking for is a web builder that supports php Take this site (phpfreaks.com) for e.g. it’s made from php. But how did they make background and import a logo and position it right... did they use a web builder or something?
  4. am abit new to php, any one know how i can do this?
  5. i have a web server to upload to but how do i build a layout if my pages are made from php?
  6. like front page or dreamweaver ect...
  7. Is there a web builder I can use for my flash portal? It is made from php, I have the main php code so the flash will be added to the portal. And all the technical stuff. But what I need to do now is to make a layout to make it look good so I can add back ground and add pics and move the flash submitted list to where I like best... but for all this I will need a web builder. But when I insert the php code into one, it don’t display right in desplay mod as it dose on the web. Here is the flash portal 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>
  8. i googled it but cant find. any one els know how i can do this?
  9. 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>
  10. How do I insert php into FrontPage so I can then redesign my php page using FrontPage 2003? And if you cant what other web builders will support php?
  11. yes that work't thanks wildteen88 your the best
  12. ok were getting closer, it has fixed the title and author prob. and the portal is fixed, in witch I am very grateful ... but I still cant view the submitted flash when I click "play movie". Maybe this is a problem with my upload.php page. I will post it here so you may see. upload.php <html> <head> <title>Submit Flash</title> </head> <body> <?php // $userfile is where file went on webserver $userfile = $_FILES['userfile']['tmp_name']; // $userfile_name is original file name $userfile_name = $_FILES['userfile']['name']; // $userfile_size is size in bytes $userfile_size = $_FILES['userfile']['size']; // $userfile_type is mime type e.g. image/gif $userfile_type = $_FILES['userfile']['type']; // $userfile_error is any error encountered $userfile_error = $_FILES['userfile']['error']; if ($userfile_error > 0) { echo 'Error: '; switch ($userfile_error) { case 1: echo 'File exceeded upload_max_filesize'; break; case 2: echo 'File exceeded max_file_size'; break; case 3: echo 'File only partially uploaded'; break; case 4: echo 'No file uploaded'; break; } exit; } if ($userfile_type != 'application/x-shockwave-flash') { echo 'Error: file must be SWF'; exit; } require ("dbconnect.php"); $query = "select * from flash"; $result = mysql_query($query); //this makes the userfile_name the same as its flashid $userfile_name = (mysql_num_rows($result))+1; $upfile = 'upload/'.$userfile_name.'.swf'; if (is_uploaded_file($userfile)) { if (!move_uploaded_file($userfile, $upfile)) { echo 'Error: Could not move file to destination directory'; exit; } } else { echo 'Error: Possible file upload attack. Filename: '.$userfile_name; exit; } $fileuploaded = 'upload/'.$file_name.'.swf'; //unlike the file upload script this does not need to be the full path to the directory $date = date('F jS, Y'); //gets the date added by simple PHP date function $date = addslashes($date); //we must add slashes to everything before entering it into the database //add slashes to other variables if ($website){$website = addslashes($website);} if ($description) { $description = $_POST['description']; // retrieve from POSTed variables array } else { $description = $_POST['description']; } $name = $_POST['name']; $title = $_POST['title']; $width = $_POST['width']; $height = $_POST['height']; $category = $_POST['category']; //enter information into database creating a new row $query = "insert into flash set author='".$name."', title='".$title."', website='".$website."', email='".$email."', width='".$width."', height='".$height."', description='".$description."', userfile='".$fileuploaded."', category='".$category."', date='".$date."'"; $result = mysql_query($query); echo("File uploaded sucessfully!"); ?> </body> </html>
  13. sort of worked but still cant view the flash... here is my test website so you may see what happened http://gameworld.byethost13.com/portal.php there are no links so just type e.g. /submit.php... for the other pages. The title, author... comes up as $title, $author instead of the original flash title... and when you make a review it says "The review field was left blank."
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.