Jump to content

dearmoawiz

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by dearmoawiz

  1. hi guyz hows u all ? can any body tell me the complete criteria of upload a php site or tell me any links from where i get the complete information of uploading a php site. thnxx
  2. this way is not suitable for me bcoz my requirements are bit different then this one i just want to calculate the differete b/w days and month like 12/04 and 14/05 got it ?
  3. hi guyz .. hwz u all i need ur help here is the scenario........ i hav today date with date function n i have another date which is save in database like 09/05/2008 (today date) and 12/04/2008 (date from database) now i want to calculate the difference b/w these 2 dates in the form of days then how i calculate that plz help me wizzz!!!!
  4. ya m using Apache server so from where i can increase the default file size ???
  5. hi guyz howz u all can any body tell me how i upload files more than 5 to 10 mb in php thnxxx in advance wiz
  6. hi guyz howz u all can any body tell me how to upload video and audio files in php ... the file size is in b/w 4 to 10 mb ?? i am waiting for u guys kind response Enjoy !! wizzz
  7. i need to resize the image being saved on server ... infact the real scenario is that i wanna build a photo album in php so there if i upload images i want that they resized in equal size and then saved on server ... so tht the real scenario did u got my point???
  8. hi guyzz howz u all i wanna start ajax in php so can any body tell me from where i get the initial help for ajax which will be helpfull for me to getting good start... Enjoy!!! wizzz
  9. hi guys hwz u all .... can any body tell me how we resize an image in php ?? need urget response enjoy !!!! wizzz
  10. i also done it with that way but again result same ... let me paste code again if($_FILES["res"]["error"]>0) { echo "Error: ". $_FILES["res"]["error"]; } else { if(file_exists("references/". $_FILES["res"]["name"])) { echo "File already Exists "; } else { move_uploaded_file($_FILES["res"]["tmp_name"],"references/". $_FILES["res"]["name"]); } } here the out is File Already Exists ... but wen i check the folder then there is no file in that folder n if i upload any new file than also message is same
  11. hi guyzzzz howz u all i using following code for file uploading but wen i run it the message is that file already exists so can any body tell me wats problem ? my file input field name is res !!! waiting i debug it n i found the error that it didnt take any value in $_FILES["res"]["name"] this variable so plzz guide why it happening ... if($_FILES["res"]["error"]>0) { echo "Error: ". $_FILES["res"]["error"]; } else { if(!file_exists("references/". $_FILES["res"]["name"])) { echo "File already Exists "; } else { move_uploaded_file($_FILES["res"]["tmp_name"],"references/". $_FILES["res"]["name"]); } }
  12. here is the solution $row = mysql_fetch_array($result); echo $row['categories_name']; thnxxx for my self
  13. thnx for ur response buddy but it dosent work it just display the blank screen .. now dont say that it may b possible in database no result match wid following criteria .. bcoz there is one field which have the ID = 1 n its name is hardware .. so it must display the result hardware but nothing happened like tht .. waiting for response from any other body ..
  14. hi guys here is the scenario .. in the categories description table category_id is primary key .. so when this query executed it return just one row... now i want to display the name of category without loop so wat will b the next statment which show me the name of category ... waiting for response... $q = "select categories_name from categories_description where categories_id = 1"; $result = mysql_query($q); ? ? ? thnxxx
  15. hello guys .. i want to send a formated email using php mail function in which i use html tags like create table ... but when i receive that mail in my inbox it show all those tags also instead of table ... can any body help me how i show table in inbox thnxx Enjoy!!!!!
  16. hi guys i m using OScommerece open source for building an e-marketing solutions site ... there i have one problem ... Scenario is ........ when customer complete all his/her shopping he/she checkout and then confirm his/her order ... at that time a email send to customer and store owner as well ... but there i want to send email to just store owner not customer ... so how i handle it .. waiting for your response Enjoy!!
  17. just put them in Radio button and write this condition if(isset($_REQUEST['rd1'])) { $fldcategory=$_REQUEST['cboCategory1']; $sql ="INSERT INTO tbltextpageseng (cat_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleeng', '$txttexteng')"; dbQuery($sql); $sql2 ="INSERT INTO tbltextpagesswedish (cat_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleswedish', '$txttextswedish')"; dbQuery($sql2); } if(isset($_REQUEST['rd2'])) { $fldcategory=$_REQUEST['cboCategory2']; $sql ="INSERT INTO tbltextpageseng (tp_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleeng', '$txttexteng')"; dbQuery($sql); $sql2 ="INSERT INTO tbltextpagesswedish (tp_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleswedish', '$txttextswedish')"; dbQuery($sql2); }
  18. hi, i explain my prob in a simple way. i have two select tages <select name="sani"> <option>A</option> </option>B</option> </select> and 2nd select tage is <select name="Hyne"> <option>c</option> </option>d</option> </select> Now T wanna select one of then as if(isset($_REQUEST['sani'])!= "") echo " Sani is selected"; if(isset($_REQUEST['Hyne'])!= "") echo " Hyne is selected"; it means if i select A or B it must show Sani is selected if i select C or D it must show Hyne is selected get it any one?
  19. hi, I've two SELECT boxes.i want to get value if one of them. but its shows selected values of both.but i need either one of them. my slecet box code is <input type="radio" value="Choose Category :" name="rd" /> <select name="cboCategory1" class="box" id="cboCategory" > <option value="">All Category</option> <?php $sql2 = "SELECT * from tbl_engcategory WHERE Publish='Yes' ORDER BY cat_name"; dbQuery($sql2); $result2=dbQuery($sql2); while($row = dbFetchAssoc($result2)) { extract($row); ?> <option value="<?php echo $cat_id; ?>" <? if ($cat_id == @$fldcategory) { echo "selected"; } ?> ><?php echo $cat_name;} ?></option> </select><span class="error"><?php echo @$catrgoryerror; ?></span> <input type="radio" value="Choose Category :" name="rd" /> <select name="cboCategory2" class="box" id="cboCategory"> <option value="">All Category</option> <?php require_once '../library/config.php'; $sql2 = "SELECT * from tbl_textpages"; dbQuery($sql2); $result2=dbQuery($sql2); while($row = dbFetchAssoc($result2)){ extract($row); ?> <option value="<? echo "$tp_id"; ?>"<? if($tp_id == @$tpId) { echo "selected";}?>><? echo "$tp_CategoryName"; ?></option> <? } ?> </select> and my condition is : if(isset($_REQUEST['cboCategory1'])!= "") { /*$fldcategory=$_REQUEST['cboCategory1']; $sql ="INSERT INTO tbltextpageseng (cat_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleeng', '$txttexteng')"; dbQuery($sql); $sql2 ="INSERT INTO tbltextpagesswedish (cat_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleswedish', '$txttextswedish')"; dbQuery($sql2); */ echo "Pehla combo"; } if(isset($_REQUEST['cboCategory2'])!="") { echo "Dosra combo"; /* $fldcategory=$_REQUEST['cboCategory2']; $sql ="INSERT INTO tbltextpageseng (tp_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleeng', '$txttexteng')"; dbQuery($sql); $sql2 ="INSERT INTO tbltextpagesswedish (tp_id, pagename, preamble, fldtext) VALUES ('$fldcategory', '$txtname', '$txtprembleswedish', '$txttextswedish')"; dbQuery($sql2);*/ } is there any one to guide me plz
  20. hi Guys i m new in php i want help regarding global variables or any other way to use variable globally ... here is the scenario!!!! i want to use a variable through out my application which have different folders and files as well ... if i change the value of a variable in one place then in whole application whenever i use that variable i must get the updated value of that variable ... waiting for your response .. Enjoy!!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.