why isn't anything showing !!!!!!

2013-03-31  Source: Original Site  Category:PHP  Views:0 


all this shows is the content in my head.php and foot.php nothing else shows... why?!?!?!
$pagetitle="Avatar Preferences";
include "../include/head.php";
echo $harsss;
$myrow=mysql_fetch_array(mysql_query("SELECT `level` FROM `users` WHERE `username`='$uname' AND `password`='$password'"));
$imgarray=array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/x-png");
$myrow=mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `username`='$username' AND `password`='$password'"));
if(($filetype=="image/pjpeg")||($filetype=="image/jpeg")) $newfilename=$newfilename.".jpg";
elseif($filetype=="image/gif") $newfilename=$newfilename.".gif";
elseif(($filetype=="image/png")&&($filetype=="image/x-png")) $newfilename=$newfilename.".png";
else $newfilename=$newfilename.".jpg";
$newfilename=ereg_replace(" ","_",$newfilename);
mysql_query("UPDATE `users` SET `avatar`='avatars/".$newfilename."' WHERE `username`='$uname' AND `password`='$password'");
echo("\n<div>File <b>".$filename."</b> successfully uploaded. It was renamed to <b>".$newfilename."</b> and placed in the <b>avatars/</b> directory. <a href='user.php'>User Information</a>.</div>");
echo("\n<div>File transfer failed. Contact the administrator. Return to <a href='preficon.php'>Avatar Preferences</a>.</div>");
echo("\n<div>Invalid file type. Only JPEG, GIF, and PNG image types are allowed.</div>");
echo("\n<div>This file is too large. Only files of 10 KB or less may be uploaded. Your file was about ".$filesizesub." KB too large. Return to <a href='preficon.php'>Avatar Preferences</a>.</div>");
echo("\n<td class='lite' colspan='3'>Return to: <a href='index.php'>Board List</a>");
echo(" | <a href='gentopic.php?board=".$board."'>Topic List</a>");
if($topic) echo(" | <a href='genmessage.php?board=".$board."&topic=".$topic."'>Message List</a>");
echo(" | <a href='user.php");
if($topic) echo("&topic=".$topic);
echo("'>User Information</a></td>");
$myrow=mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `username`='$uname' AND `password`='$password'"));
echo("\n<td class='lite' colspan='3'>Avatar Settings for ".$myrow["username"]."</td>");
echo("\n<td class='dark'>Current Avatar</td>");
echo("\n<td class='dark'>");
if($myrow["avatar"]) echo("<img alt='".$myrow["name"]."'s Avatar' src='".$myrow["regemail"]."' />");
else echo("Avatar Not Set");
echo("\n<td rowspan='3' width='50%'>");
echo("\n<blockquote>All avatars will be resized to 60 x 60 pixels. The maximum file size for avatars is 10 KB. If your avatar is animated, make sure it's 60 x 60 before uploading, as Internet Explorer messes up animated GIFs when it resizes them. Any offensive avatars are grounds for severe moderation (<a' href='tos.php");
if($topic) echo("&topic=".$topic);
echo("'>More Information</a>)</blockquote>");
echo("\n<form action='preficon.php' enctype='multipart/form-data' method='post'>");
echo("\n<td>Upload File</td>");
echo("\n<td><input name='userfile' type='file' /></td>");
echo("\n<td class='dark' colspan='2'><input name='submit' type='submit' value='Update' /></td>");

Related articles
  • why isn't anything showing !!!!!! 2013-03-31

    all this shows is the content in my head.php and foot.php nothing else shows... why?!?!?! <?php $pagetitle="Avatar Preferences"; include "../include/head.php"; echo $harsss; $board=$_GET["board"]; $topic=$_GET["topic"]; $myrow=mysql_fetch_array(my

  • Why isn't the */%$#* line showing up?!!? 2012-04-08

    http://www.concrete-creative.com/sharecipe/findfriends.html The dropdown menus don't always show the bottom horizontal line... I see them on all major browsers, but my friend is using an older version of FF and doesn't see the line on the Friend's dr

  • Ubuntu Why isn't official Firefox localization included in Ibex and Hardy? 2013-01-11

    I can see my language localization is included in official Firefox 3.0.4 download page for Linux http://www.mozilla.com/en-US/firefox/all.html So I can download it and install it on Ubuntu 8.10. But I don't really want to do that because package mana

  • Ubuntu Why isn't page compression (a la Opera Turbo) a standard? 2013-04-10

    A random question popped up into my head today. One of the Opera browser's key features is its "turbo" mode which is aimed at users with slow connections, where downloading the webpage itself is the bottleneck. For those who don't know, the main prem

  • Why username doesn't show during login 2013-08-07

    Why isn't the username showing when I login? PHP Code: <?php # login.php if ($_SERVER['REQUEST_METHOD'] == 'POST'){ session_start(); $_SESSION['logged_in'] = true; header('HTTP/1.1 303 See Other'); } header('Location: index.php'); ?> PHP Code:

  • Ubuntu What the hell is msttcorefont and why isn't it default? 2014-06-04

    I was playing around installing different themes and such on Gnome, and I had to install msttcorefont and edit some config files. I did a ton of changes and did not reboot. Like always, I got sick of all the new themes and stuff and got rid of them a

  • Ubuntu why isn't WebMin in the repositories? 2012-03-21

    When I discovered WebMin it totally changed my view of Linux - suddenly a whole new world opened up to me and I could configure things I didn't even know existed before. Why isn't it included in the repositories? It isn't as though it was just releas

  • Ubuntu Why isn't gnome-terminal a login shell 2012-05-14

    I've seen lots of posts all over the Internet that advise users to check the "Run command as a login shell" checkbox in GNOME Terminal under Edit->Profile Preferences->Title and Command. This makes gnome-terminal run bash/csh/tcsh/ksh as a logi

  • Why isn't my paragraph behaving ?? 2012-06-02

    Hi I've got a contact page on my site with a simple form for customers to fill out.....click to view (http://www.round-the-bend.co.uk/contact.php) Why isn't the paragraph at the bottom "Or text us.....07786 023886" behaving like a block-level element

  • Ubuntu why isn't this working out of the box? 2012-06-04

    Back in March I tried to install Linux on my laptop but gave up since wireless wouldn't work despite this FAQ which directly addresses it: http://ubuntuforums.org/showthread.php?t=14490 I downloaded the newest live cd a few days ago, figuring that 7

  • Ubuntu Why isn't this in the repositories? 2012-08-20

    Why isn't this in the repositories: http://zapatopi.net/mindguard/

  • Why isn't the Designer backward Compatibile for New Version? 2012-11-19

    Hi I would like to know why isn't the Designer backward compatible or maybe at least within the major release like within version 7 not across 7 & 8.

  • why isn't there a C\c++ section ? 2012-12-12

    Why isn't there a C\c++ section for articles on devshed.com ?

  • Ubuntu Why isn't the DVD-installer east available 2013-02-27

    With the servers being pounded by everybody, why isn't the DVD-release more visible? The CD-installer is easy to find, but the DVD-installer is hidden deep in ubuntu.com's cellar. Wouldn't torrent-downloaded DVD-installers put less stress on the serv

  • ubunt human theme.. why shouldn't ubuntu show variety in colors in each release 2013-05-07

    i just installed my intrepid ibex. i know its late to post this idea but ill have to do it for the sake of it. the default human theme in intrepid ibex is horrible. many of my friends didn't like it too.the buttons are not giving a good feel, they ar

  • Ubuntu Why isn't there an update for Rhythmbox in Synaptic? 2013-05-11

    I want to edit tags from within Rhythmbox. I don't want an external program to do it, because I want to fix inconsistencies on the fly, if I have to launch a program just to change the name of Beatles to The Beatles, I'm not going to bother. I also w

  • why wont my images show? 2013-06-29

    im a little confused?? :p i want to put some photos from my computer onto my html site, but i dont understand why they are not showing? i used <IMG SRC="mypic.jpeg"> but it displays as a box with a cross in it? please help me? :confused:

  • Why isn't aMSN supported by Ubuntu anymore? 2013-09-25

    I downloaded the last aMSN from a Debian Sid Backport I found, and I want to ask, why isn't this package supported by Ubuntu anymore?

  • Ubuntu Why isn't Glipper installed by default? 2013-12-05

    Hi Even In Ubuntu 10.04 you can still not copy something from one program close it and copy it to another You try it Sure you can copy it when the original program is still open but this is a hassle The reason Ubuntu can not do that is because it doe

  • why du and df show different results 2014-01-24

    On my debian machine, df command is giving the following df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 16G 16G 0% 31% / tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 10M 32K 10M 1% /dev while du -h / gives #du -sh / 5.6G / After rebooting the syst