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...
Hi there,
I have a db table that is for activities that uses unique ID numbers and another table that references those ID numbers but in a comma separated format. I'm working within a framework that is setup like this from a proprietary system so can't change this format.
I want to do a query...
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()
{...
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...
Hi there,
As the question states above, how would you use VBA to dynamically change the TAB color in Excel 2010 based on the formula: AB7 > AF7 to switch to red if true and revert back to the preset colors if false. I managed to figure out some kind of macro but I had to run the macro every...
Hi there,
I have been tearing my hair out for 2 days trying to get this simple conditional to work. This only seems to work if I highlight one cell at a time and put in the same formula for each one but I need the formatting to apply to many cells all over the current worksheet.
I go into the...
Hi there,
I have a spreadsheet that I'm making and there are many cells with very complex programming attached to them and some cells that require user input. How can I protect this sheet so that users can only touch and input data in a few select cells and preventing them from screwing up the...
Hi there,
I am having a recurring problem that appears to be random. My keyboard seems to change it's setting from my regular keyboard to what I believe to be a french layout.
When I press ? it will show a É
When I press ' it will show a è
etc etc etc
Why does it do this? Am I somehow...
Hi there,
Not sure if this is the right place to post this or not but here goes...
I have an old computer with my iTunes and several hundred GB of music and I sync my 2 iPods and my iPhone to it.
I just bought a brand new comp (because the old one is nearly dead) and I want to move everything...
I'm trying to connect to a website to do a scrape to get a daily URL from an <img> tag and am failing hopelessly. Connecting and reading is easy to do but when I do my preg_match I don't seem to be getting anywhere.
The page has many links on it and the one I want has a specific alt tag for the...
This is so stupid, I bet the fix is very easy. I have a nav bar that's 770px wide by 40px high and want the links centered both vertically and horizontally in the table cell. That part is simple. What I can't get is the CSS hover to use an image and extend the full 40px height and still stay...
Hi there,
I don't know ASP, nor do I really want to know ASP, however I need a simple script to do testing with. The test is as follows:
MS Access Name: mytest.mdb
MS Access Table Name: status_test
Fields
ID - Test
1 ASP is connecting to MS Access
(only one row in the db)
I need a simple...
Hi there,
I have problems uploading using CFFILE because files are being uploaded into the wrong temporary folder from that specified in the sandbox security. How do I change the temporary folder that CFFILE uploads to.
Thanks.
NATE
http://www.mainframehosting.net
Got a question? Search G O...
I've been using dos prompts since 98 and am quite proficient so I know I'm doing this right but whenever I goto switch drives in a command prompt I get an error
Input > D:\
Error > 'D:\' is not recognized as an internal or external command, operable program or batch file.
I get the same error...
Hi there,
I have built myself an invoice section where PHP connects to my database and populates a template for client invoices.
The question is this. Can I create a blank PDF with a vector logo in it, upload it, then have php read the pre-existing pdf file, write the invoice to it and save as...
This is sooooo true and a great read. Enjoy!!!
http://twasink.net/blog/archives/2004/10/if_architects_h.html
NATE
http://www.mainframehosting.net
Got a question? Search G O O G L E first.
I have created a new Nite Club site and looking for feedback. The site is very image heavy and slow loading for those on slower connections (I'm working on that still).
Element Club Bar and Grill
NATE
http://www.mainframehosting.net
Got a question? Search G O O G L E first.
I'm looking to setup a new website for a night club and they want people to have the ability to upload images they took on nights (which aren't shown until an admin approves it) but my question is what type of disclaimer should be used.
Anyone uploading an image would need to have appropriate...
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.