Jump to content

Jukebox42

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

About Jukebox42

  • Birthday 07/03/1987

Contact Methods

  • AIM
    Jukeb0x42
  • Website URL
    http://

Profile Information

  • Gender
    Not Telling

Jukebox42's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. that was exactly it thank you hitman6003 i knew it had to be something trivial.
  2. I have a function that uploads a file onto the server but it doesn't work. It always returns "There was an error processing your request, please try again." Can anyone tell me why it might not work? Thanks in advance, Juke Function listed below: //upload post function function uploadPost() { $loc = $_POST['loc']; if( move_uploaded_file( $_FILES['fileUp']['tmp_name'], "uploads/$loc/".basename($_FILES['fileUp']['name']) ) ) { $this->message2 = "File uploaded."; } else { switch( $_FILES['fileUp']['error'] ) { case 1: case 2: $this->message2 = "Your file could not be uploaded because:<br>The file has exceeded the maximum file size limit."; break; case 3: $this->message2 = "Your file could not be uploaded because:<br>The file was only partially uploaded."; break; case 4: $this->message2 = "Your file could not be uploaded because:<br>The File was not uploaded."; break; case 5: $this->message2 = "Your file could not be uploaded because:<br>An unknown error occured."; break; default: $this->message2 = "There was an error processing your request, please try again."; break; } $this->message2 .= "<br>The file ". basename( $_FILES['fileUp']['name'])." has been uploaded"; } }
  3. Oh, yea sry heres what display nav looks like. eventhough an empty function was still spitting the same error. [code]function DisplayNav()     {         $database = 'XXXXXX';         $host = 'localhost';         $user =  'XXXXXX';         $password = 'XXXXXXX';         $conn = mysql_connect ( $host, $user, $password );         if( !$conn )         {             brokenLink();         }         $result = mysql_db_query ( "$database","SELECT * FROM XXXXXXX" );         while ($row = mysql_fetch_assoc ($result))         {             echo "<a href='$row['navurl']' target='_self'><img src='nav_menu/$row['navimg']'></a><br>";         }         mysql_free_result ($result);     } [/code] this is a simple function and it should work... i use should because im a trial and error kinda person and i rarly have something correct the first try ><. Oh the X's are replacements for important things...
  4. Im having a realy anoying problem. To my knolege there is no reason why this shouldnt work. I am still a newb to PHP and I'm in over my head. I understand programing design and know how to properly format but heres my issue. My main page "index.php" looks like this: [code]<?php     session_start();          //Declare Page     var $page = "/index.php";     var $pagename = "Home";          require('main.inc');          Display(); ?>[/code] And the section of code in "main.inc" that's being stubborn is: [code]function Display() {                 $title = 'Clan TDG -';         echo "<html>\n<head>\n";         echo "<title>$title $pagename</title>\n";         echo "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>";         echo "<link href='main.css' rel='stylesheet' type='text/css'>\n";         echo "</head>\n<body>\n";         echo "<div class='pheader'><a href='login.php'>Login </a></div>\n";         echo "<div class='pnavigation'><img src='images/nav_top.gif'>\n<br>\n";         DisplayNav();         echo "\n<img src='images/nav_bottom.gif'>\n";         DisplaySpot();         DisplayContent( $pagename );         echo "<div class='pcopyright'><br>Copyright © 2006 Clan TDG. All rights reserved.</div>\n";         echo "</body>\n</html>"; } [/code] once the script meets the "DisplayNav();" line it stops running. so my site when run spits out: [code]<html> <head> <title>Clan TDG - Home</title> </head> <body> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'> <link href='main.css' rel='stylesheet' type='text/css'> <div class='pheader'><a href='login.php'>Login </a></div> <div class='pnavigation'><img src='images/nav_top.gif'> <br> [/code] and then it stops... Oh, I also tryed commenting out the functions and it ran so the problems got to do with the function calling another function. But i have no idea why as I am in over my head with this ".inc" stuff. If anyone can lend a hand I would be ever greatfull. Thanks In advance. If you need more information, or would like to see the entire pages or something you can ether email me or my AIM is [a href=\"http://aim:goim?screenname=Jukeb0x42&message=Hello+Are+you+there\" target=\"_blank\"]Jukeb0x42[/a]?
×
×
  • 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.