
watthehell
Members-
Posts
143 -
Joined
-
Last visited
Never
Everything posted by watthehell
-
can anyone help on this function please function UploadFile($filen,$filepath) { if(!move_uploaded_file($_FILES[$filen]["tmp_name"],$filepath)) { echo"Could not copy file"; exit; } What is $filen and $filepath here... i write like this $strfilepathgif=UploadFile("txtimagegif","animatedgif"); is this ok
-
thanks a lot... i will try that
-
[SOLVED] uploading Animated GIF from PHP
watthehell replied to watthehell's topic in PHP Coding Help
IS THIS POSSIBLE.......................... -
Can we upload animated gif with resizing through PHP?? Is it possible or not...
-
what is this ??? what kind of code is this he he he .... it looks like c to me ;D
-
You should install it, not copy it... i think the link is broken now
-
use like this <img src="<?=$rs['image_field']?>" width="100" height="100" border="0" />
-
Can animated gif be uploaded through PHP, when i upload only still image comes, i need to resize and upload IS IT POSSIBLE ??? ??? ??? ??? ???
-
thnks for the reply man.... i will post my code here.... later
-
the login form is in login.php file and this code i kept on header.php file <?php if ($is_logged==true) { i need logout here <? } else { ?> <? include("login.php");?> <? } ?>
-
sorry to say.... it didnt work, it gets logged in but does not show "You are now logged in", it shows the textbox to enter username and password........ :( :(
-
check session function is like this ... function check_session($val) { return $val; $errmsg="Session has been expired."; if(isset($val)) return $val; $this->abort("Session Error ", $errmsg); // $this->redirect($this->error_template); exit; } /// i just wanted to ask how to use that function is_user() in php code.... can we use like this <? if is_user()==true { ?> display message u are logged in <? } else { ?> display login box <? } ?>
-
[SOLVED] problem in PHP fetching & [DISPLAYING] data
watthehell replied to watthehell's topic in PHP Coding Help
thanks a lot................. ..... i'll see if there is other alternatives..... -
function is_user() { if(isset($_SESSION['ISUSER'])) { return $this->check_session($_SESSION['ISUSER']); } else { return false; } } can anyone explain what this function does.... ??? ??? ???
-
[SOLVED] problem in PHP fetching & [DISPLAYING] data
watthehell replied to watthehell's topic in PHP Coding Help
sorry to trouble but........ i kept <?echo rs['mytext']; ?> in the text cell and <?echo rs['mypicture']; ?> in the image cell.. I mean to ask if there is some[THING] in php that makes the text come inside another cell (td) i mean if it gets too long.... -
hello everyone I have one simple question for php freaks out here.... i need to display data from mysql database and display in front end... the data is long text around 1 page.... but my design is like this i need to keep picture in the left hand side (250 x 300). But when i fetch the data from php the text gets long from one cell and below the picture it comes blank... I need some text in the side of the picture and if the text gets long below the picture too.. is it possible for e.g ................................................ text text text text text text text text | | text text text text text text text text | | text text text text text text text text | | text text text text text text text text | | text text text text text text text text | | text text text text text text text text |this is place for picture | text text text text text text text text | | text text text text text text text text | | text text text text text text text text | | text text text text text text text text | | text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text IS THIS POSSIBLE.... i have one text field and one picture field in the database Can someone help please ????????????????????
-
aahhh well.. it is true i never paid attention in class , and thanks all for the replies.... i did wat mr bbaker had posted.... i designed the db with two tables one for question and other for answer... i forgot to say be4, the questions and answer to be posted is dynamic.... errr my teacher will post that .... but main point is when we create a answers table, we have to show option for correct answer too.. will the radio button will work on this... i'm confused Suppose if there are 4 answers and the third one is correct.. how will we know which is correct ... please help on this... and secondly.. in the front end can u tell me how to write the code for fetching the answer..if i am not mistaken the answer must be fetched from loop, right or wrong... ??? and while desgining html how shall i do it ?? please help please
-
Hi can anybody help me with PHP code for a quiz ???? I need to fetch all the questions and answers from DB with radio button ??? in each page i need to show 5 questions (total 20 questions) i.e. 4 page ?? Can anybody please guide me a logic for this part and also with Database how must it be designed ????????????????????? please , this is my college project please please please thanking in advance...