Jump to content

delickate

Members
  • Posts

    193
  • Joined

  • Last visited

    Never

Everything posted by delickate

  1. Hi, Is there any php script which can open doc file. edit it and save into it. is yes please provide script link. Thanks
  2. Hi, I've dynamic form. all div and fields are dynamic. so hard to ignore them. sample code is as follow <form> <select name="txtbrandCategory'.$i.'[]" id="txtbrandCategory'.$i.'" class="branddropdowncss required" onchange="showfeildsperbrndCat(this, \''.$i.'\')" id="brandcatslctbox"> <option value=""> -- select -- </option> ----------------------- ------------------------ ---------------------------- </select> <?php for(i=1; i<=10; i++) { ?> <div id="divid23<?php echo $i; ?>" style="display:none"><input type="text" name=txtname[] /></div> <div id="divid42<?php echo $i; ?>" style="display:none"><input type="text" name=txtphone[] /></div> <div id="divid39<?php echo $i; ?>" style="display:none"><input type="text" name=txtemail[] /></div> <?php } ?> </form> on select box change one of the div will show up. but when i submit a form if return all dives data. so i want to get only that div data which is display block. hope you understand now. thanks
  3. Hi, I've have a form with some hidden DIVs. all DIVs has some feilds..... i want that only display: block div should be a part of my form. hidden div content should not me a part of my form. but when i submit a form and get values it gives all values. even container is hidden or block. would any one help me on this??? Thanks
  4. Hi, is there one know if there is any script of PHP to convert pdf to images? I want to use flipbook on website. and i can only found a script of flipbook that loads only images. can't find any flipbook to load pdf file. so i decided to convert pdf to images and then load images to flipbook. I don't want to use ghostscript and imagemagic. so if anyone knows please guide. Thanks
  5. hi, Thanks for prompt response and guide. I installed oscommerce on my local server. it is running fine. now i want to login oscommerce with my manual code pasted before. i place a file one folder up of oscommerce folder. so my login file path is c:\wamp\www\cart\login.php and my oscommerce path is c:\wamp\www\cart\oscommerce\index.php i want to log into oscommerce in my login.php file. after login it'll take me two oscommerce folder. i copy past all the code from cart\oscommerce\login.php into cart\login.php made some modification and try to run. it didn't give any error. says username password is correct and redirect to oscommerce\login.php it seems that there is some session problem. even though my code is working fine it require again login access. can you guide me how can i do that? Thanks
  6. Hi, I'm trying to login oscommerce with manual code. but unable to do that. all entries going to database but don't understand what is missing??? here is my code $email_address = $_REQUEST['txtemail']; $password = $_REQUEST['password']; $check_customer_query = mysql_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from customers where customers_email_address = '" . $email_address . "'"); if (mysql_num_rows($check_customer_query)> 0) { $check_customer = mysql_fetch_assoc($check_customer_query); if (!tep_validate_password($password, $check_customer['customers_password'])) { echo "password not found."; }else { tep_session_recreate(); $check_country_query = mysql_query("select entry_country_id, entry_zone_id from address_book where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'"); $check_country = mysql_fetch_array($check_country_query); $customer_id = $check_customer['customers_id']; $customer_default_address_id = $check_customer['customers_default_address_id']; $customer_first_name = $check_customer['customers_firstname']; $customer_country_id = $check_country['entry_country_id']; $customer_zone_id = $check_country['entry_zone_id']; tep_session_register('customer_id'); tep_session_register('customer_default_address_id'); tep_session_register('customer_first_name'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); mysql_query("update customers_info set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'"); anyone have any idea about?
  7. Hi, I've a simple form. and want to submit using jquery ajax. it is doing nothing. can anyone help me on this. My code is : <script type="text/javascript"> $(document).ready(function() { $("#askexpfrm").submit(function(){ $.ajax({ url: 'submitAskTheExpert.php', type:'POST', data:'action=yes&', success: function(html) { alert('sani'); } }); return false; }); }); <form action="/" method="post" id="askexpfrm"> <label>Name:</label><br /><input type="text" class="asktheexpcss" name="txtname" /> </form> it is very simple form. it doesn't showing any alert. doing nothing... please guide what is wrong in it??
  8. Hi guys, I'm trying put scroll color using AJAX. but failed. I've a div like this: <div class="scroll-pane" id="SLContainer"></div> I'm filling the dive using AJAX. On page load if i put color scroll code like below. it works fine. $(document).ready( function($) { $('.scroll-pane').jScrollPane(); } ); but when i use same function to fill div. and put same color scroll code in ajax function. it doesn't color the scroll. e.g function ajax() { ... ......... if (http_request.status == 200) { $('.scroll-pane').jScrollPane(); } .... .. } even i tried this: function ajax() { ... ......... if (http_request.status == 200) { $(document).ready( function($) { $('.scroll-pane').jScrollPane(); }); } .... .. } but no luck. can anyone guide me please??? Thanks
  9. Thanks guys, It is really helpful and solved my problem. i really appreciate your all assistance. Thanks again.
  10. Hi, Thanks for the reply. Yes, actually view table is like a relation table. many things could relate to many other things. ok forget it. can we get two specific id with one query ? means i've 10 record in table. I want to get 4 and 6 record only suppose i query for it like this select * from tbl_profile p where 1=1 and p.pro_id = '33' and p.pro_id = '56' but this query doesn't show the record. my requirement is not two use 'or' Please help on this Thanks
  11. Hi, Can we use 'if condition' in query before where clause??? or is there any alternate way to do following thing? SCENARIO: ------------- i've two tables __________ tbl_profile ---------------- pro_id pro_name __________ _________ tbl_view -------------- v_id v_one v_two v_detail __________ tables has following content tbl_profile -------------------------------- pro_id pro_name 1 sani ...... ..... .. tbl_view v_id v_one v_two v_detail 1 2 3 testing detail 2 1 3 testing detail A 3 2 1 testing detail B 4 6 4 testing detail 5 7 5 testing detail profile id could come as foreign id in table view in two fields v_one and v_two. as you can c in above table. id '1' is as foreign in v_one and v_two against v_id 2 and 3 respectively. so i want to query that if profile id is found in v_one or v_two it should join. so i'm trying following query select * from tb_profile p left join tbl_countries c on (p.p_country = c.countries_id) if((select * from tbl_view where v_one = '1') > 0) left join tbl_view v i on (p.pro_id = v.v_one) if((select * from tbl_view where v_two = '1') > 0) left join tbl_view v i on (p.pro_id = v.v_two) is it a fine way to or we could different query for that? Please help Looking forward Thanks
  12. how strang!!!!!!, no one knows how to upload image using jquery and ajax with page refresh!!!!!! dis......................
  13. ok .leave it. anyone have simple code to upload image and some text field submission with out page refresh?? if have please post here. i've struck with it now. Thanks
  14. Thanks for reply, Here is my full code <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="topnavscript/jquery.form.js"></script> <script> function savebasicinfo(val) { $(document).ready( function() { $('#basicinfofrm').submit(function () { $.ajax({ url: 'process.php', type:'POST', data:'action=yes', success: function(html) { alert(html); } }); }); } ); return false; } </script> <form method=" post" action="" onsubmit="return savebasicinfo(this);" enctype="multipart/form-data" id="basicinfofrm"> <input type="hidden" name="prnw_id" value="<?php echo $basicinfo['prnw_id']; ?>" /> <table width="100%" cellpadding="10" cellspacing="10"> <tr><td>Name</td><td><input type="text" name="prnw_name" class="jointxtinputcss" value="<?php echo $network->showoneoftwo($basicinfo['prnw_name'], 'Dummy Name'); ?>" /></td></tr> <tr><td>Email</td><td><input type="text" name="prnw_email" class="jointxtinputcss" value="<?php echo $network->showoneoftwo($basicinfo['prnw_email'], 'email@transformbody.biz'); ?>" /></td></tr> <tr><td>Phone</td><td><input type="text" name="prnw_phone" class="jointxtinputcss" value="<?php echo $network->showoneoftwo($basicinfo['prnw_phone'], '4535353453'); ?>" /></td></tr> <tr><td>City</td><td><input type="text" name="prnw_city" class="jointxtinputcss" value="<?php echo $network->showoneoftwo($basicinfo['prnw_city'], 'Dubai'); ?>" /></td></tr> <tr><td>Country</td><td> <?php echo $network->selectbox('tbl_countries', 'countries_id', 'countries_name', 'name ="prnw_country" class="joinslctinputcss"', $basicinfo['prnw_country']); ?> </td></tr> <tr><td>Date of Birth</td><td><input type="text" name="prnw_dateofbirth" class="jointxtinputcss" <?php echo $network->showoneoftwo($basicinfo['prnw_dateofbirth'], '2012-02-02'); ?> /></td></tr> <tr><td>Gender</td><td><?php echo $network->selectbox('tbl_job_gender', 'gen_id', 'gen_name', 'name ="prnw_gender" class="joinslctinputcss"', $basicinfo['prnw_gender']); ?></td></tr> <tr><td>Image</td><td><input type="file" name="prnw_image" class="jointxtinputcss" /><br> <img src="images/<?php echo $network->showoneoftwo($basicinfo['prnw_image'], 'dummy.png'); ?>" width="120" alt="sani" /> <input type="hidden" name="txtoldimage" value="<?php echo $network->showoneoftwo($basicinfo['prnw_image'], 'dummy.png'); ?>" /> </td></tr> <tr><td>Address</td><td><textarea name="prnw_address" class="jointxtinputcss" ><?php echo $network->showoneoftwo($basicinfo['prnw_address'], 'Main Bulevard, Albersha 1, Dubai, UAE'); ?></textarea></td></tr> <tr><td> </td><td><input type="submit" name="txtbasicinfosubmit" value="Save" class="joinsubmitcss" /></td></tr> </table> </form> and my process.php file has following code <?php $prnw_id = ''; $prnw_name = ''; $prnw_email = ''; $prnw_phone = ''; $prnw_country = ''; $prnw_city = ''; $prnw_dateofbirth = ''; $prnw_gender = '1'; $prnw_address = ''; $prnw_image = ''; $txtoldimage = ''; if(!empty($_FILES["prnw_image"]["name"])) { $accept = array('jpg','png','gif','bmp'); $extension = substr($_FILES['prnw_image']['name'],strrpos($_FILES['prnw_image']['name'],'.')+1); if(in_array($extension,$accept)) { $image->load($_FILES["prnw_image"]["tmp_name"]); $image->resizeToWidth(120); $random_digit = md5(rand(0000,9999)); $filename = $random_digit.$_FILES["prnw_image"]["name"]; $image->save("../../../network/images/profile/thumb/" . $filename); $prnw_image = $filename; } }else { $prnw_image = $txtoldimage;} print_r($_POST); ?> following error i'm getting: <br /> <b>Notice</b>: Undefined index: prnw_image in <b>C:\Program Files\VertrigoServ\www\demo\process.php</b> on line <b>491</b><br /> hope everything is clear now. please guide...
  15. hi, Thanks for the reply, I'm using two files [/code] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="topnavscript/jquery.form.js"></script> [/code] one is for jquery and one is for ajax form. the problem is . form is being submit. but it give error for file that index is undefine. even i've given encryption too. like this <form method=" post" action="" onsubmit="return savebasicinfo(this);" enctype="multipart/form-data" id="basicinfofrm"> Please guide thansk
  16. Hi, I want to submit a form using ajax ans jquery with two fields input text and file. <script> $(document).ready( function() { $('#basicinfofrm').ajaxForm(function() { url: ''+PN+'.php', type:'POST', data:'action=yes&'+frmFeilds, success: function(html) { alert(html); } }).submit(); </script> <form action='' method='post'> <label>name</label> <input type='text' name='txtname' /> <input type='file' name = 'txtfile' /> <input type='submit' value='save' /> </form> but is is not working... can anyone tell me how to? i don't want to refresh my page Thanks
  17. hi guys... I'm resizing image with some script. it works fine. but some times it gives following error and make image black. either it should not upload/resize image or it should do that for all. following is the error list i found on some images Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '../../../directory/images/large/0419063.jpg' is not a valid JPEG file in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagesx() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 34 Warning: imagesy() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 35 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 182 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 183 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 76 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 77 Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 201 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '../../../directory/images/thumb/0419063.jpg' is not a valid JPEG file in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagesx() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 34 Warning: imagesy() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 35 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 182 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 183 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 76 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 77 Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 201 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '../../../directory/images/medium/0419063.jpg' is not a valid JPEG file in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagesx() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 34 Warning: imagesy() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 35 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 182 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 183 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 76 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 77 Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 201 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '../../../directory/images/xlarge/0419063.jpg' is not a valid JPEG file in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 49 Warning: imagesx() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 34 Warning: imagesy() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 35 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 182 Warning: Division by zero in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 183 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 76 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 77 Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in C:\Program Files\VertrigoServ\www\demo\administrator\modules\directory\classes\resize-class.php on line 201
  18. ok. no woes.... can anyone tell me how can i get the status of payment if the payment has been made or not through coding?? I'm using google's provided class but can't find such function. so can anyone guide me please??? Thanks
  19. Surprise to see that no one know how to do that!!!!!!!!!!!!!!!!!!!!!
  20. hi, I'm integrating google checkout on my website using php. anyone have any idea if google checkout take payment on website just like paypal payment pro??? Looking forward. Best regards
  21. Hi, I'm using fpdf to create a pdf file. it is working fine. but i'm facing one problem in cell method. if my string is too long then it over lap the cell. here is my code $sani->Cell(155,4,'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.',1,1,'L'); anyone have any idea of how to fix this issue? Thanks
  22. Thanks ocpaul20, but document root show the absolute path. which i don't want. i need virtual path. yea session is a great idea. Thanks dragon, You choose a smart move. I like it. the method will definitely work. Thank a lot. Thanks all of guys... it is really a help full.
  23. Hi, I want to get root path and use on links even if i'm in sub to sub folder etc... suppose my site name is fitness.com and having two subfolder. so url will become http://www.fitness.com/dir/dir_sub here i want to put a link to go to root directory file. there are different ways to do that. e.g: <a href='../../filename.php'>go to that page</a> but i want to use some constant that always shows to root directory. as i defined here define("SERVER_NAME" , $_SERVER['HTTP_HOST']); //and used it like this <a href='<?php echo SERVER_NAME; ?>/filename.php'>go to that page</a> it works when we're on root directory. but when we go to sub directory it added sub directory name with it. which i don't want. is there any way? Thanks
  24. Hi, I'm using some global CSS class for input. but now i want that this class should not apply on some specific input. i use some inline class for it but class still inherits. even i put 'important'. is there any other way on php, jquery, js to remove any global class. there should not apply any class for specific input. Please help Thanks
  25. thanks for the reply, I want to know that is there any technique to make separate bock of code on same page that doesn't conflict other block? Thanks
×
×
  • 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.