I have been out of the programming game for a while now and I've tried to implement an old script I created but now have an error saying the eregi() function was removed and it throws an error. How would I re-write this now:
if (empty ($_POST["var"]) || !eregi ("^[0-9]+$", $_POST["var"]))
{
//...
Can someone please help me.
I have an html tag:<div id="myid" class="myclass " data="QAZwsxedc12345.pdf" data-height="100" data-width="100">
I'm trying to use regex to find this div which has a unique id and I want to strip out the data portion that has the PDF file name.
I was trying...
Hi there,
I am trying to create a simple paypal buy now button to renew memberships on our website. The user has to be logged in and the system auto generates a random string for the session which I then want to pass to paypal via their buy now buttons and then have paypal give it back so I can...
...second query simply does the count and sum and gives me exactly what I need per activity:
SELECT SUM(`DL_Logbook`.`Divetime`) AS `totaltime`,COUNT(*) AS `totaldives` FROM `DL_Logbook` WHERE FIND_IN_SET(46, `DL_Logbook`.`Divetype`)
What I want to be able to do is combine them and so far I...
Thanks I was only using document.write to see if the variable was passing or not, I won't actually be using it at all. Wanted to know the variables were setting properly before using while calling another function.
NATE
Hi there
I have a fairly simple problem I'm hoping someone can help me with. I have the following script
<script>
var my_lat;
var my_lng;
function geo_success(position)
{
my_lat = position.coords.latitude;
my_lng = position.coords.longitude;
}
function geo_error()
{...
That works! I tweaked it slightly to:
SELECT * FROM `trips` WHERE `viz` = 'Y' AND DATEDIFF(`date_end`, '2016-01-01') > -30 ORDER BY `date_end` < '2016-01-01', `date_end`
One thing I find curious and can't wrap my head around is the ORDER BY statement. Don't get me wrong, this SQL works exactly...
Hi there,
I'm wondering if it's possible to do a certain query in mysql without having to write multiple queries. I have a site that has some travel trips and store the trip date range in 2 fields: date_start and date_end
Let's for example assume the following trips:
1 - Hawaii Start...
Really? I thought when I used v5 it didn't have layers at all, although as you said this was a decade ago!
NATE
http://www.nateryder.com
Got a question? Search G O O G L E first.
Photoshop 5.5 was the first version to introduce layers. Think of them as a stack of transparencies sheets (that you literally hold in your hand) and you can put anything you want on them but you always hold them together in a stack. You can change the order of them and layers on the top will...
I am going to control all the colors from my one config sheet instead. That will be easier.
Ultimately I was thinking of making my sheet only 2 pages, one for a config and one for calculations etc, but the thing is, I need someone to be able to print the whole thing or at least X number of...
Skip,
That's brilliant. Pretty much exactly what I wanted, now I'll have to play with this a bit to do exactly what I want.
Again, with reference to the above, I will enter data in my config sheet, then each page will calculate the total number of pages.
AB7 is a static hard coded number for...
I don't know what doesn't make sense? If I didn't explain myself well enough then that should have been stated, rather than linking to a google search video. In any case here is what I was saying:
As you can now see above I have some posted code, from a site I found. The color won't change...
Hi Skip,
This is the code I was trying:
Sub test()
If Sheets("Sheet2").Range("A1").Value <> "hello" Then
Sheets("Sheet1").Tab.ColorIndex = 6
Else
Sheets("Sheet1").Tab.ColorIndex = -4142
End If
End Sub
I just created a simple separate .xlsm file with two pages.
I followed all the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.