zhahaman2001
Members-
Posts
46 -
Joined
-
Last visited
Never
Everything posted by zhahaman2001
-
ok along with my other problem im trying to do something else... lets say i have 2 tables in my database one is named states and one is named citys and lets say on my page i have a 2 combo boxs like this: [code] print "<select name='stateid'>"; $TEMP = mysql_query("select * from states order by name"); while ($state = mysql_fetch_array($TEMP)) { print "<option value='$state[id]'>$stat[name]</option>"; } print "</select>"; print "<select name='city'>"; // Here my problem print "</select>"; [/code] i want it so when i click one of the states from the first combo box that it goes to the cities table of my database and fills the 2nd combo box with all the citys that are in that state
-
uploading an .avi to server gets an error
zhahaman2001 replied to zhahaman2001's topic in PHP Coding Help
for right now testing im running the server from my pc so when i upload this file its takeing the avi from my desktop and puting it in the server folder.... if i run the avi on my desktop it plays fine but after i have uploaded and i go to the server folder and play it, it has an error so it has to be something with the way i upload it -
uploading an .avi to server gets an error
zhahaman2001 replied to zhahaman2001's topic in PHP Coding Help
no its only 4.87mb ..... and its 4.87 mb befor i upload and after i upload -
uploading an .avi to server gets an error
zhahaman2001 replied to zhahaman2001's topic in PHP Coding Help
is it because im uploading a image and a video at the same time? -
[code] <?php echo "Setting number of apples to 1.<br>"; $apples=1; at the end of the line below you need a ; echo "Number of apples: ", $apples, "<br>" echo "Adding 3 more apples.<BR>"; $apples = $apples + 3; echo "Number of apples now: ", $apples, "<BR>"; ?> [/code] and instead of saying this echo "Number of apples now: ", $apples, "<BR>"; you can say this echo "Number of apples now: $apples <BR>";
-
uploading an .avi to server gets an error
zhahaman2001 replied to zhahaman2001's topic in PHP Coding Help
i have all the codecs i need to play it .... it plays on my computer befor i upload it but after i upload it, it gets an error -
heres my upload code code on page for form: [code] <form method='post' name='frmsub' action='upload.php'> <input type='file' name='picture'> <input type='file' name='video'> <input type='submit' value='Upload'> </form> [/code] upload code: [code] $tobeid = 9; $pic_ext = substr($HTTP_POST_FILES['picture']['name'],-4); $pic_link = "media/incidents/pics/{$tobeid}{$pic_ext}"; if (move_uploaded_file($HTTP_POST_FILES['picture']['tmp_name'], $pic_link)) { } else{ print "error"; } $vid_ext = substr($HTTP_POST_FILES['video']['name'],-4); $vid_link = "media/incidents/video/{$tobeid}{$vid_ext}"; if (move_uploaded_file($HTTP_POST_FILES['video']['tmp_name'], $vid_link)) { } else{ print "error"; } [/code] ok so it upload the pic its fine (i have more code that error handles the pic but nothing that would interfer with the video) and it uploads the video it uploads the right size and everything but if you try to run the avi video with windows media player it gets an error and wont run....any ideas
-
checkbox mail delete system not working out.....
zhahaman2001 replied to zhahaman2001's topic in PHP Coding Help
lol thanks, i know i couldnt think of a good way to do it -
or if you need it to be > or = to then you can do this if ($flashage >= 3){ }
-
well i have a mailing system on my website and i want it so my users while in their inbox can check each message they want deleted and click a delete button to delete it here was m idea of how to do this (this isnt all my code but this is just to give you an idea of how i was trying to do it) (id is a number) //[INBOX] $temp = mysql_query("select * from messages where owner='$user'"); while ($mail = mysql_fetch_array($temp)) { print "Delete<input type='checkbox' name='$mail[id]'>"; } //[DELETE MESSAGES] $temp = mysql_query("select * from messages where owner='$user'"); while ($mail = mysql_fetch_array($temp)) { if(${mail[id]} == "on"){ mysql_query("delete from messages where id='$mail[id]' } } but ${mail[id]} dosnt hold anything can someone tell me what im doing wrong and how to fix it thanks...
-
go to new page on when song is done....?
zhahaman2001 replied to zhahaman2001's topic in Javascript Help
isnt there another way? -
go to new page on when song is done....?
zhahaman2001 replied to zhahaman2001's topic in Javascript Help
thats no good what if they pause the song....? -
http://www.phpfreaks.com/forums/index.php/topic,112386.0.html i dont know if i need javascript for that or if i can use php so i dont know what forum to put it in to get the right help...sorry
-
ok i have a page that has a song on it [code] <embed volume=100 src=song1.mp3 width=300 height=45 autostart=true loop=FALSE></embed> [/code] and i want it so when the song is done playing (it got to the end) that it loads a new page (in the same window) ......so this page is song.php and when the song is done i want it to go to song.php?songdone=true how would i do that ?
-
also (the main point of this is to keep the vars hidden) is there a way to hide them from the url and source?
-
[quote author=Tandem link=topic=110750.msg448317#msg448317 date=1160180030] If you only want to use links then GET is your best option. To use POST (to my knowledge), you need to use a submit input to submit the form. [/quote] can i have an code example please?
-
ok on my site i have a lot of links that look like this <a href=nextpage.php?var=$var>Next Page</a> because thats the only way i know to pass vars from one page to another easly is there any other way like the html <form> way (i dont like the html form way because the only way i know how to do that is with a button and all i want is a text link)
-
getting html vars from other page....
zhahaman2001 replied to zhahaman2001's topic in PHP Coding Help
lol its the only one that finds my city you know of anyother good ones? -
ok i need get the info from http://www.geobytes.com/IpLocator.htmGetLocation&ipaddress=000.000.000.000 on to my page, i need to get it so i can use the vars.... the buttom line is i need the City, Region, Country boxs in vars and i dont know the best way to do that