Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 01-30-2013, 07:23 PM   #1
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
how can i edit the frecuency of this pop under?

hi this is a java cookie ublockable pop unders it opens once a day
how can i change the frecuency to open every 10 minutes?
hope you guys can help me, i have change the 1 days to many things without luck...

var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();

}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 01-31-2013, 05:05 AM   #2
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
no one knows about java?
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-01-2013, 07:23 PM   #3
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
Quote:
Originally Posted by jcche19 View Post
hi this is a java cookie ublockable pop unders it opens once a day
how can i change the frecuency to open every 10 minutes?
hope you guys can help me, i have change the 1 days to many things without luck...

var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();

}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;
i am leaving this forum... no one really help
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 12:31 AM   #4
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by jcche19 View Post
hi this is a java cookie ublockable pop unders it opens once a day
how can i change the frecuency to open every 10 minutes?
hope you guys can help me, i have change the 1 days to many things without luck...

var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();

}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;
Just modify the line...
Code:
var stagedPopFrequency = "1 days";
...to read...
Code:
var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 01:28 AM   #5
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by Nookster View Post
Just modify the line...
Code:
var stagedPopFrequency = "1 days";
...to read...
Code:
var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language.
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 08:47 AM   #6
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
Quote:
Originally Posted by Nookster View Post
Just modify the line...
Code:
var stagedPopFrequency = "1 days";
...to read...
Code:
var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language.
changed 1 days to 10 mins and didn't work

Last edited by jcche19; 02-02-2013 at 08:48 AM..
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 09:55 AM   #7
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by Nookster View Post
Just modify the line...
Code:
var stagedPopFrequency = "1 days";
...to read...
Code:
var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language.

Um, nope, that's not gonna work.

The set expire date is using getdate() which returns the day of the month PLUS the integer value in the frequency string to compute the new expire date. It is pretty much hard coded to use a days value.

Quote:
function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();

expireDate.setDate(expireDate.getDate() + parseInt(Expire));

document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}
so, where the expire date is being calculated has to be changed to use something other than getdate. getminutes might work but I would have to play with it some to make sure.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 10:17 AM   #8
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Where you have this:

Quote:

expireDate.setDate(expireDate.getDate() + parseInt(Expire));

Change to:

Quote:

expireDate.setMinutes(expireDate.getMinutes() + parseInt(Expire));
And then change the initialization at the top to var stagedPopFrequency = "10 minutes";

You do not need to say days or minutes or anything in there actually, the script is only using the integer part.

The code is also using toGMTString which is deprecated and should be changed to toUTCString

This is still not a wonderful solution in my mind because now it is hardcoded for minutes instead of days as it was before.

If you truly wanted this to use the passed in value 1 days, 1 hours, 1 minutes,.... where you could set it however you wanted on the fly it would take some additional work.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 11:04 AM   #9
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
Quote:
Originally Posted by sarettah View Post
Where you have this:




Change to:



And then change the initialization at the top to var stagedPopFrequency = "10 minutes";

You do not need to say days or minutes or anything in there actually, the script is only using the integer part.

The code is also using toGMTString which is deprecated and should be changed to toUTCString

This is still not a wonderful solution in my mind because now it is hardcoded for minutes instead of days as it was before.

If you truly wanted this to use the passed in value 1 days, 1 hours, 1 minutes,.... where you could set it however you wanted on the fly it would take some additional work.

.
changed everything like you said.. still dont work
please help me out i just want to promote a music video of my daugther with this pop. thanks!

var stagedPopFrequency = "1 minutes";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setMinutes(expireDate.getMinutes() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setMinutes(expireDate.getMinutes() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();


}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 11:23 AM   #10
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by jcche19 View Post
changed everything like you said.. still dont work
please help me out i just want to promote a music video of my daugther with this pop. thanks!
Hit me on icq 2155399

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 12:19 PM   #11
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
I have set up a test page and the script appears to work as expected to me.

You have the interval set for 1 minute and I am seeing a popunder that triggers if I wait a minute between and does not trigger if less than a minute between.

The popunder is triggered by the first click into the page. That is how your script is set up so it does not happen on page load but rather one click in.

My testpage is at http://www.madspiders.com/testpop.htm I have it spitting out some debug code showing what is going on in the script. It may change some because I am still screwing around mapping the whole mess out.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 05:34 PM   #12
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
Quote:
Originally Posted by sarettah View Post
I have set up a test page and the script appears to work as expected to me.

You have the interval set for 1 minute and I am seeing a popunder that triggers if I wait a minute between and does not trigger if less than a minute between.

The popunder is triggered by the first click into the page. That is how your script is set up so it does not happen on page load but rather one click in.

My testpage is at http://www.madspiders.com/testpop.htm I have it spitting out some debug code showing what is going on in the script. It may change some because I am still screwing around mapping the whole mess out.
ok cool i see that is opening every minute if you reload the page....
how you did it dude?
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 05:46 PM   #13
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by jcche19 View Post
ok cool i see that is opening every minute if you reload the page....
how you did it dude?
It is the exact script you put in your last post. I cut and pasted it from there and then just put in some display.writes for debugging just so I could see how it worked.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 06:08 PM   #14
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
maybe i am doing something wrong... i save the script as pop.js i upload the file to my root directory and them embed the pop in my website like this <script type="text/javascript" src="http://www.blapage.com/pop.js"></script>
are you doing it in a diferent way?
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 07:19 PM   #15
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by jcche19 View Post
maybe i am doing something wrong... i save the script as pop.js i upload the file to my root directory and them embed the pop in my website like this <script type="text/javascript" src="http://www.blapage.com/pop.js"></script>
are you doing it in a diferent way?
I had the script right in the page but it should work either way.

I changed my test page around and it is now set up just the way you described and it still seems to work.

If you post the url of the page you are trying to make work I can take a look. Or send it to me in icq, I saw you added me. I always show as offline so just send it if you don't want to post it.

.
__________________
All cookies cleared!

Last edited by sarettah; 02-02-2013 at 07:28 PM..
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-02-2013, 10:47 PM   #16
jcche19
Registered User
 
Industry Role:
Join Date: Jan 2013
Posts: 84
Quote:
Originally Posted by sarettah View Post
I had the script right in the page but it should work either way.

I changed my test page around and it is now set up just the way you described and it still seems to work.

If you post the url of the page you are trying to make work I can take a look. Or send it to me in icq, I saw you added me. I always show as offline so just send it if you don't want to post it.

.
hi i deleted my Clear browsing history download history the cache cookies and other site and plug-in data and now i can see the changes... thanks a lot for your help... Blessings!
jcche19 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-03-2013, 09:50 AM   #17
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by jcche19 View Post
hi i deleted my Clear browsing history download history the cache cookies and other site and plug-in data and now i can see the changes... thanks a lot for your help... Blessings!
Glad it worked out for you

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-05-2013, 03:36 AM   #18
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Incredible. How about "10 minutes" vs "10 mins".

I was trying to give a lesson.

Depressing.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-05-2013, 08:37 AM   #19
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by Nookster View Post
Incredible. How about "10 minutes" vs "10 mins".

I was trying to give a lesson.

Depressing.
Not sure what you are trying to say but the mins vs minutes had nothing to do with anything. As far as the lesson goes, all he was wanting was to be able to pop a video of his daughter, he wasn't looking to become a programmer. At least from how I read it.


.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-22-2014, 11:19 PM   #20
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Bumping this because you are just what your user title says (sarettah)...everyone here needs to be somewhat of a web person...programmer, whatever. It's for the best. Can't believe it took me this long to see your BS comment. You are depressing and lost here.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-23-2014, 10:26 AM   #21
JesseQuinn
feeding the wolves
 
JesseQuinn's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: between sand and stars in Jamaica
Posts: 6,235
depressing and lost are synonyms for witty, smart as hell and incredibly helpful/generous with his time, right?
JesseQuinn is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-23-2014, 08:44 PM   #22
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by Nookster View Post
So I've been trying to get a damn search option to work with one of my mainstream projects for the past day or so but it's just not working. Here's the query I'm using:

Looks fine right? According to documentation this should work. Well, all of the selects for the OR (||) work, but once it gets to the AND part it seems to just overlook it and doesn't do anything. It does finish successfully (as in no errors) but it doesn't use the AND part (doesn't further narrow the results by executing the actual logic).
My questions: Why doesn't this work? What am I doing wrong if it's wrong?
This has been frustrating the shit out of me.
Thanks to all who will be kind enough to reply.
Quote:
Originally Posted by tical View Post
put the OR parts in parenthesis, i think that should fix it

$trysrch = @mysql_query("select * from table_name where (item_name like '$srch' || item_name2 like '$srch' || item_name3 like '$srch') && area = '$place' order by item_name asc");
Quote:
Originally Posted by Nookster View Post
Thank you very much. It works great now. Guess I should read more.
8chars..
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-23-2014, 08:55 PM   #23
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by Nookster View Post
Bumping this because you are just what your user title says (sarettah)...everyone here needs to be somewhat of a web person...programmer, whatever. It's for the best. Can't believe it took me this long to see your BS comment. You are depressing and lost here.

Quote:
Originally Posted by Nookster View Post
Incredible. How about "10 minutes" vs "10 mins".

I was trying to give a lesson.

Depressing.
You may have been trying to give a lesson but your solution was wrong, that is what I meant when I said min or minutes had nothing to do with it.

The code needed to change before you could use anything other than a day or(days) value, as I said in the discussion.

If your solution had been correct I would probably have left this thread alone, I had bypassed it several times prior to answering. I answered because i saw bad info being given.

Now, go fuck yourself you stupid little assfuck.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-23-2014, 08:56 PM   #24
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by JesseQuinn View Post
depressing and lost are synonyms for witty, smart as hell and incredibly helpful/generous with his time, right?
Thanx for that.

;p
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.