Jump to content

vinpkl

Members
  • Posts

    448
  • Joined

  • Last visited

Posts posted by vinpkl

  1. Hi fastsol

     

    If instead of an fake transparent image, if i want to have an original image say my logo image

    <img src="logo.jpg?track.php?id=123" >
    

    Will it be fine to have two "?" signs in the url or img src.

     

    vineet

  2. Hi

     

    I have read on internet that the companies track email as "open" by inserting an transparent image.

     

    But i am not able to found what actually they insert into the source code of that image that marks or updates in the database as "open".

     

    Do they insert an update query into the source code of image ??

     

    Can please tell me a example with img src ??

     

    Thanks
    Vineet

     

  3. Hi

     

    If i run the below script then both the dates are displayed after delay of 15 seconds.

     

    But i think 1st date should get displayed instantly and 2nd should get display after 15 seconds.

     

    But its not happening ??

     

     

    <?php
    echo date('H:i:s');
    sleep(15);
    echo "<br>";
    echo date('H:i:s');
    ?>

     

    Vineet

  4. Hi all

     

    I want to show subcategories on only the selected dealer

    But the below code is showing subcategories on all dealers.
     

        »  Blackberry (3)
    
            »  Battery (2)
    
        »  Samsung (1)
    
            »  Battery (1)
    
    

    If Blackberry dealer is selected then only its subcategories should be visible.

    Samsung subcategories should be hidden.

    <?php
    
        $qry_sub="select distinct s.subcid, s.subname from subcategories as s
    
        INNER JOIN
    
        producttable as p
    
        ON
    
        s.subcid = p.subcatg and p.dealerid = ".$dealer_id." and p.status='Y'";
    
        //echo $qry_sub;
    
        echo "<ul>";
    
        $result_sub=mysql_query($qry_sub);
    
    
    while($row_sub=mysql_fetch_array($result_sub))
    
    {
    
        echo "<li></li>";
    
    }
    
        echo "</ul>";
    
    ?>
    
    

    Thanks

    Vineet

  5. Hi

     

    can anyone tell me why this code is not working in chrome emulator

     

    You can select devices like "Google nexus 4, Google nexus 5" or similar which has width less than 480

     

    Border and padding is not getting applied.

     

    Floating is also not working ??

    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style type="text/css" media="screen">
    @media screen and (max-width:480px){
    .firstcol{width:90%; border:1px solid #ff0000; padding:10px; font-size:2em}
    .secondcol{width:90%; border:1px solid #ff0000; padding:10px; font-size:2em}
    }
    @media screen and (min-width:600px) and (max-width:800px){
    .firstcol{width:42%; float:left; border:1px solid #ff0000; padding:10px; font-size:2em}
    .secondcol{width:42%; float:left; border:1px solid #ff0000; padding:10px; font-size:2em}
    }
    </style>
    </head>
    
    <body>
    <div class="firstcol">This is the first column</div>
    <div class="secondcol">This is second column</div>
    </body>
    </html>
     
    

    Thanks

    Vineet

  6. Hi

    I have an old ecommerce website in which all queries are based on LOGIN ID.

    select * from user_table where user login id = '$loginid'

    Now i have a requirement of creating "CHECKOUT AS GUEST" feature.

    So should I create TWO separate database tables for Member and Guest.

    OR Single table for both.

    And Then on what basis shall i do the queries.

    So that my queries should work in both case, whether user is a MEMBER or a GUEST.

    Thanks
    Vineet
     
  7. hi all

    i am using this below code in htaccess

    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?domain\.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule .*\.(jpe?g|bmp|png|swf)$ /images/nohotlink.gif [L]

     

    Also I am using colorbox script to show content in popup.

    I have some images in "images" folder inside "colorbox" folder on the root on local server (xampp)

    The above code in htaccess file is not showing "images" from this images folder that is inside     colorbox folder on root on local server (xampp)

    If i comment those 3 lines in htaccess file then all images are shown fine on local server (xampp).

    How can i allow my htaccess file to show these images from inside colorbox folder on local server (xampp)??


    Thanks
    Vineet

  8. Hi Pravin

     

    This code works perfect.

     

    Thanks a lot

     

    Vineet

     

     

    use this updated javascript function

    function checkForm()
    {
    	var obj = document.getElementsByName('dest[]');
    	var destCount = obj.length;
    	var destSel   = false;
    	for(var i = 0; i < destCount; i++)
    	{
    		if(obj[i].checked == true)
    			destSel = true;
    	}
    	if(destSel == false)
    	{
    		alert('Select one or more destinations');
    	}
    	return destSel;
    }
    
  9. Hi Pravin

     

    I tried your code.

     

    It is showing the alert even if i have checked 2 checkboxes.

     

    I dont want to show alert if the checkboxes have been checked.

     

    Vineet

     

     

    <html>
    <head>
    <script language="javascript">
    function checkForm(){
    var obj = document.getElementsByName('dest[]');
    var destCount = obj.length;
    var destSel   = false;
    for(i = 0; i < destCount; i++){
    if(obj.checked == false){
    destSel = true;
    break;
    }
    }
    if(!destSel){
    alert('Select one or more destinations');
    }
    return destSel;
    }
    </script>
    </head>
    <body>
    Select at least one destination
    <form action="" method="post">
    <input id="cx" type="checkbox" name="dest[]" value="CX" />   <label for="cx">Cox's Bazar</label><br />
    <input id="su" type="checkbox" name="dest[]" value="SU" />   <label for="su">Sundarban</label><br />
    <input id="sy" type="checkbox" name="dest[]" value="SY" />   <label for="sy">Sylhet</label><br />
    <input id="ch" type="checkbox" name="dest[]" value="CH" />   <label for="ch">Chittagong</label><br />
    <br />
    <input type="submit" name="Go" value="  Go  "  onclick="return checkForm();"/>
    </form>
    </body>
    </html>
    

     

     

  10. Hi Pravin

     

    I just tested your code but it doesnt show alert.

     

    it doesnt works

     

    vineet

     

     

    <html>
    <head>
    <script language="javascript">
    function checkForm(frm){
    var destCount = frm.elements['dest[]'].length;
    var destSel   = false;
    for(i = 0; i < destCount; i++){
    if(frm.elements['dest[]'][i].checked){
    destSel = true;
    break;
    }
    }
    
    if(!destSel){
    alert('Select one or more destinations');
    }
    return destSel;
    }
    </script>
    </head>
    <body>
    Select at least one destination
    <form action="" method="post">
    <input id="cx" type="checkbox" name="dest[]" value="CX" />   <label for="cx">Cox's Bazar</label><br />
    <input id="su" type="checkbox" name="dest[]" value="SU" />   <label for="su">Sundarban</label><br />
    <input id="sy" type="checkbox" name="dest[]" value="SY" />   <label for="sy">Sylhet</label><br />
    <input id="ch" type="checkbox" name="dest[]" value="CH" />   <label for="ch">Chittagong</label><br />
    <br />
    <input type="submit" name="Go" value="  Go  "  onclick="return checkForm(this);"/>
    </form>
    </body>
    </html>
     
    
  11. Hi all

     

    The below validation code works fine when the form gets submit.

     

    But i want to apply validation "onclick" of button instead of "onsubmit"

     

    How can i apply validation "onclick" of button instead of "onsubmit"

     

     

    <html>
    <head>
    <script language="javascript">
    function checkForm(frm){
    var destCount = frm.elements['dest[]'].length;
    var destSel   = false;
    for(i = 0; i < destCount; i++){
    if(frm.elements['dest[]'][i].checked){
    destSel = true;
    break;
    }
    }
    
    if(!destSel){
    alert('Select one or more destinations');
    }
    return destSel;
    }
    </script>
    </head>
    <body>
    Select at least one destination
    <form action="" method="post" onSubmit="return checkForm(this);">
    <input id="cx" type="checkbox" name="dest[]" value="CX" />   <label for="cx">Cox's Bazar</label><br />
    <input id="su" type="checkbox" name="dest[]" value="SU" />   <label for="su">Sundarban</label><br />
    <input id="sy" type="checkbox" name="dest[]" value="SY" />   <label for="sy">Sylhet</label><br />
    <input id="ch" type="checkbox" name="dest[]" value="CH" />   <label for="ch">Chittagong</label><br />
    <br />
    <input type="submit" name="Go" value="  Go  " />
    </form>
    </body>
    </html>
     
    

     

    Thanks

    Vineet

     

  12. The message is quite direct.  It's telling you that the php install/config you are using does not allow includes (requires) specifying a url.  You can only include files that are part your your filesystem, not from the web.

     

    If this module is truly something within your filesystem, then point to it that way, not as a url.

    Hi

     

    thanks for the reply. I would like to know

     

    Is IPN Compulsory for paypal script to work and complete transaction ?

     

    Can we complete paypal payment transaction without IPN Script ?

     

    Vineet

  13. Hi all

    This is the below error which is getting logged in the error log file

    PHP Warning: require_once() [<a href='function.require-once'>function.require-once</a>]: URL file-access is disabled in the server configuration in on line 10
    PHP Warning: require_once(http://www.domain.com/paypal.inc.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: no suitable wrapper could be found in ipn.php on line 10
    PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'http://domain.com/paypal.inc.php' (include_path='.:/php') on line 10
    

    Below code is on line 10 in ipn.php

    require_once 'http://www.domain.com/paypal.inc.php';
    

    what can be the problem ?

     

    thanks

    vineet

×
×
  • 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.