I have a php front-end supporting a pretty well-trafficked website. I have many (8-10) customers that have asked me to add tracking pixels to my pages as a way for them to count advertising impressions.
my site uses javascript and does tracking on its own (as the last item on the page).
I have...
I'd like to write a perl script that would run evey hour (I'm thinking of just having the Windows Task Manager crank up the perl script each hour).
The perl script needs to go to an ftp site (this part isn't a problem) and check a particular file's date and time and write that out (append) to a...
Hey guys, I am seeing an error in my PHP5
The error is "Cannot use string offset as an array"
Here is a piece of the code. The line where the error occurs is
$country_codes['us'] = $price_array[$arr['us_masterid']]['sellers'];
if ($res_map && db_numrows($res_map))
{
$arr =...
so there is an error in my posting and WinblowsME caught it. It was only an error in pasting it into this forum because I was originally passing a placeholder in the SELECT statement and needed the $id in the execute but when I was doing testing, I failed to remove the $id from the execute call...
So it seems to be a problem with how I created the mysql table so I'll take this to a different forum unless someone has any experience on why this wouldn't work.
I am doing my select with a where clause on the id column
i built my table with such that the id column is a primary key, int...
Well this isn't the correct way to do this but I must say it works -- kind of
sub select_item
{
my ($dbh, $id) = @_;
my ($sth, @row, $row, $count);
my $sql = qq{ SELECT * FROM export};
$sth = $dbh->prepare ( $sql ) or die $dbh->errstr...
Hey Paul,
So I tried adding your extras to my execute line and that still has my execute just locking up and doing nothing.
I also tried from a different machine and that didn't work either :(
Same bad result from both machines
The execute works if the where clause isn't in the command.
So select * from export will return results but of course the first id not the one I actually want so I use where id=? And pass the $id in the execute
Even if I hardcode it to be where id=36 it always fails
If I remove the where...
the execute line is where it fails
$sth->execute();
The query returns in mysql in sub second but I get nothing when excited via code. It just hangs and so I don't get a fetchrow_array
As a follow-up note:
This is a very small table I am pulling data from.
MySQL is the database I am using.
only 40 rows in the table and hardly any data in my test database
Again, thank you in advance -- I'd love to be able to sleep when this is resolved ;)
ok. I am a decent perl programmer (I think) and I have finished my application and everything works except for ONE issue and I am about to rip my hair out over it so I am asking for some help. I've been staring at this for a long time so maybe I'm just too close to the problem and I can't see...
I have an interesting problem. I have two pieces of hardware (both without a Windows operating system -- running Xylinx FPGAs inside). I also have a software application that would be running on a Windows XP or Vista machine.
I need a way to send out a broadcast ethernet packet withouth DHCP...
If I put the space in there, it will be there for the negative numbers also and the numbers will be formatted like:
:000000 -0021G -0006 0281
:000000 -0018G -0028 0285
instead of
:000000 -0021G-0006 0281
:000000 -0018G-0028 0285
I am using XMLTextWriter to create XML. Can someone tell me how to send this to a webservice being hosted by someone else?
Lets say my Webservice was https://leads.webservice.com
with an exposed method of importLead
THANKS!
XmlTextWriter writer = new XmlTextWriter(/*Response.OutputStream*/...
I want to write some objects using the 3.5 framework but my applications is using the 1.1 framework. Our intention is to write a new application which would use the 3.5 objects later so this would remove having to re-write them down the road is we could call the 3.5 objects from 1.1 code.
Does...
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.