jwk811
Members-
Posts
714 -
Joined
-
Last visited
Never
Everything posted by jwk811
-
i wanna pass post variables to a function without having to submit a form, how?
-
there is a working file input in the form. when i process it EVEN if nothing was uploaded it still will say that the FILES input isset and != ''. how can i see if its actually being used?
-
no what should i put
-
i think it has something to do with the extension being in capitals like .JPG but then i tried it myself and it worked but for everyone else capital extension seems to notupload. maybe thats not it at all i dont know
-
i get the name of the photo stored in the database just fine. but there is no file uploaded. but it works half the time??
-
$pic = $_FILES['photo']; $ext = substr(strrchr($pic['name'], "."), 1); $imagePath = md5(rand() * time()) . ".$ext"; $target = "images/"; $target = $target . $imagePath; move_uploaded_file($pic['tmp_name'], $target); It works for me and I don't think it's the extension because it's always .jpg and it works for me. I just don't get what could be happening. It worked before perfectly until I changed things around but it's still the SAME! And the directory has just the same permissions as the last one when it worked.
-
thts not it
-
ok i did that. but why would it work for some people. i dont get it.
-
most of the time it works but then a few people couldnt get their photos to upload. im stumped. i think it has something to do with the extension in capital letters instead. but i tried a photo like that and it worked fine. ahhh help please $pic = $_FILES['photo']; $ext = substr(strrchr($pic['name'], "."), 1); $imagePath = md5(rand() * time()) . ".$ext"; $target = "images/"; $target = $target . $imagePath; move_uploaded_file($pic['tmp_name'], $target);
-
count how many posts there are in a forum category
jwk811 replied to jwk811's topic in PHP Coding Help
why isnt this working for me. any other ways? i fixed the spelling errors but still doesnt work. one bcuz the parent id isnt a column in the posts. i just wanna change the way this all works. help please -
theres a table called forum_posts and another called forum_category can i select all posts that are in forum_category but only the categories in the parent category $sql = "SELECT cat_id FROM forum_category WHERE cat_parent_id = '$cat_parent_id'"; $result = dbQuery($sql); then select all post from each of those category and add them up. is there an easier way to do this whole category thing its driving me crazy, thanks
-
all of a sudden. it was just working yesterday and i havent changed ANYTHING and today it wont connect. so its not the code but i can log on to phpmyadmin so i have no idea. just wondering if anyone knows what the possibilities of this problem could be
-
how does this site do it?
-
you have to scroll down a little before you get to it. then when you scroll past it i want it to go to the bottom of the page with you. if i put fixed too far down it wont even show
-
i would use fixed positioning but it starts too low on the page
-
ive done this before but i forget how i did it. when you scroll down it will move down the page with you
-
does anyone know of a script or how i could let users crop the photo they are uploading?
-
huh i dont understand
-
for a music player that cant be seen or at least minimized by itself. is that possible?
-
therefore theres no way you can change it on firefox?
-
i use this code in the style for the div. it works BUT not on firefox WHY??!?! scrollbar-base-color: #151515; scrollbar-arrow-color: #FFFFFF; scrollbar-DarkShadow-Color: #280000;