vinpkl
-
Posts
448 -
Joined
-
Last visited
Posts posted by vinpkl
-
-
Hi Barand
This worked perfect.
Thanks
Vineet
-
Hi
i have below format date and time stored in database
2015-06-06 02:13:54
How can i reformat it, so it displays as
06-06-2015 02:13:54
Thanks
Vineet
-
Hi Gizmola
thanks for this solution.
if worked for me
thanks
vineet
-
Hi
How can i create a client id which is 64 bit integer as described on this below link
https://developers.google.com/analytics/devguides/collection/protocol/v1/email#client-id-cid
thanks
Vineet
-
Hi fastsol
What is the solution for the tracking text emails, in which images are not displayed or email type is not html
thanks
vineet
-
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
-
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 -
-
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
-
Thanks Cyberrobot
Got it working now
Vineet
-
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
-
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
-
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
-
Hi
I want to import 4MB sql file into Phpmyadmin in xampp
But on import page the limit is to 16384 Kib
see screenshot
http://s30.postimg.org/5tkeybnu9/16kib.gif
How can i increase this limit
In Xampp/php/php.ini i have already set
post_max_size = 128M
upload_max_filesize = 128M
Does anyone has a solution to this problem ??
Thanks
Vineet
-
Hi jazz
Images are already displaying fine from "/images" folder on the root.
I want to access and display images from "/colorbox/images/" folder
thanks
vineet
-
Hi Jazz
there are 2 separate images folder on my server
http://domain.com/colorbox/images
thanks
vineet
-
hi all
i am using this below code in htaccessRewriteCond %{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 -
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; }
-
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>
-
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>
-
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
-
I have no idea what you are talking about. You asked about an error message - I deciphered it for you.
Hi
no problem.
May be someone who has worked with paypal script will able to help me
thanks
vineet
-
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
-
Hi all
This is the below error which is getting logged in the error log filePHP 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
disable or stop 2nd popup from opening
in Javascript Help
Posted
Hi all
I am using magnific popup script to open two popups.
First popup is opening on click of a link.
Second popup is opening automatically on page load after 5 second interval.
Now i want is, if First magnific Popup is already opened, then second magnific popup should not open till first is open.
How can i do it ??
here is a codepen
http://codepen.io/vineet/pen/EjvxLN
Thanks
Vineet