-
Posts
194 -
Joined
-
Last visited
Never
Everything posted by rallokkcaz
-
how do i do that?
-
i don't have a problem i need a script that only allows certain user to view it (example) say i only want user1 and user2 to view page.php so user3 can't look at the page. get my drift now? ???
-
ok ive got the whole thing a login , register, and forgot password page. but they are all within the page users.php so it goes like users.php?maa=register ect. thats the login page
-
how to let selecter users view a page? i don't know how to do the code here the the code i wanna add the script too. [code]<?PHP include ("config.php"); //if the user is not logged in, then redirect to login page. if (!is_logged_in($user)) { header("Location: users.php"); die(); }else{ include ("header.php"); //put your code here (protected page). echo ""; include ("pic_upload.php"); } ?>[/code] thanks in advanced
-
ok thanks for that help but i wanna show the images not the file size and type
-
ok people your suggestions aren't helping :-\ @ AndyB : i don't know what that is ??? @ lite i don't know what that is ???
-
my goal is to try to make a page that holds them. but i don't know how to do it.
-
ok here's what happens ive figuered out how to upload images to my site. but when i want to view my images they show up in this boring directory thing that looks like this [img]http://www.pokebash.com/images/Picture%203.png[/img] can someone pleeze help?
-
Thanks for the help people!! :D
-
well if you try to login in to the site through sed login page then it'll probly work! :D
-
dude im srry don't be such a annoying person over it
-
first of all are you even logged in? second can you login through the login.php(.html .htm ext.) that might help the problem
-
instead of have a plain old directory page how could i make a page that shows the directory but in a page?
-
now that ive figuered that out instaed of making a a boring directary page where the pics are stored is possible to make a page that the pics can go to ???
-
thanks but i figuered out what i did wrong i didn't make a folder called images!! really stupid mistake.
-
Warning: copy(images/BEN.png) [function.copy]: failed to open stream: No such file or directory in /home/pokebash/public_html/pic_upload.php on line 24 Could not copy that was the error message i just got what should i do to fix it. [code]<form name="form1" method="post" action="" enctype="multipart/form-data"> <input type="file" name="imagefile"> <br><input type="submit" name="Submit" value="Submit"> <br> <?php if(isset($_POST['Submit'])){ $file=$_FILES['imagefile']['name']; $filetype=substr($file,-4); if($filetype=="jpeg"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }elseif($filetype==".jpg"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }elseif($filetype==".png"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }elseif($filetype==".gif"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }else{ echo"<br><span class=\"subtitle\">Upload Error</span>"; echo"<br>Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>"; } } ?> </form> [/code]
-
where would i put the script to upload it to the database? and if possible make a thumb nail of it?
-
where do i put that ???
-
I can't figure out how to get this to upload to the server and then if its possible a thumbnail of the pic under that [code]<form name="form1" method="post" action="" enctype="multipart/form-data"> <input type="file" name="imagefile"> <br><input type="submit" name="Submit" value="Submit"> <br> <?php if(isset($Submit)){ $file=$_FILES['imagefile']['name']; $filetype=substr($file,-4); if($filetype=="jpeg"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }elseif($filetype==".jpg"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }elseif($filetype==".png"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }elseif($filetype==".gif"){ copy($_FILES['imagefile']['tmp_name'],"images/".$_FILES['imagefile']['name']) or die("Could not copy"); echo"<br>Upload Complete"; echo"<br>Name: ".$_FILES['imagefile']['name'].""; echo"<br>Size: ".$_FILES['imagefile']['size'].""; echo"<br>Type: ".$_FILES['imagefile']['type']."<br>"; }else{ echo"<br><span class="subtitle">Upload Error</span>"; echo"<br>Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>"; } } ?> </form> [/code] pleeze help!
-
ive got no clue how to do this pleeze help
-
yes thanks for putting it in better words
-
ok im trying to make a user profiles for the users on my site and with the ability to edit the profile ive got no clue how to do tht but i understand how to add to the database and i wanna try to make it so when a user creates there account they get a page with out my manually making it. help would be great!!
-
could you show an example? ??? ok im so srry for the trouble dude but im a bit of a rush now
-
ok ive got one question how could i make it so the user could edit it? and do you have an msn or AIM screen name so we could talk a little easier
-
srry bout that!! dumb question! But how would you make an update sql statement. srry for the dumb questions. :-\