Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: fergmj
  • Content: Threads
  • Order by date
  1. fergmj

    pixel tracking in an iframe

    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...
  2. fergmj

    How to get file time from FTP without getting the file

    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...
  3. fergmj

    Can't Use String Offset as An Array

    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 =...
  4. fergmj

    I'm about to pull my hair out

    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...
  5. fergmj

    Formatting question

    I have some code <tr> 309 <td align="center" valign="top" class="style6"><span class="style11">A:</span></td> 310 <td width="1%" align="center" valign="top" class="style6">&nbsp;</td> 311 <td class="style6"><?=_p('No, our wireless site is always 100% free to...
  6. fergmj

    Broadcast Message without DHCP

    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...
  7. fergmj

    String Formatting Question

    _sDMSPacket = string.Format(":000000 {0:0000}{1}{2:0000} {3:0000}\r\n", (int)Math.Floor(dHeave * 100 + 0.5), 'G', (int)Math.Floor(dRoll * _R2D * 100 + 0.5), (int)Math.Floor(dPitch * _R2D * 100 + 0.5)); Using the above, I get values like :000000 -0021G0006 0281 :000000...
  8. fergmj

    Sending XML to Webservice

    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*/...
  9. fergmj

    Calling 3.5 Objects from 1.1 objects

    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...
  10. fergmj

    XML out of SQL Question

    We are using SQL Server 2005 and we want to get XML out of it. The two problems are how to get it formatted correctly. it doesn't look good coming out of SQL and how do you get the beginning tag of <?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?> - <MSG>...
  11. fergmj

    How to write re-usable code

    This business I work for has provided me with business rules around a new commission structure for employees where I work. I need to implement these rules into an existing application my fellow developers have written. This application is going to get a complete re-write next year so I would...
  12. fergmj

    Trying to write better code

    I am new to C# and programming in .NET I am pretty sure this needs some better error handling around the connection at least. Can anyone suggest improvements to my small code below? Thank you in advance. SQLErrors = ""; SqlConnection cn = new...
  13. fergmj

    Design Help Needed

    I am using SQL Server 2005 for a project written in VB.NET. I think I've been too close to this project and I am unable to see the obvious so I am looking for some db design help. My project is a billing application. I have a CLIENT table and in this CLIENT table I have the normal items -...
  14. fergmj

    Help needed writing a query

    Hi I need some help writing a query I have two tables in my database SCHEDULE and STAFF I have a query that extracts data from SCHEDULE: SELECT Schedule_No, Rate, StartDate, EndDate, Staff_No FROM dbo.SCHEDULE where Client_No=@Client_No Staff_No and Staff_Name are the only two columns in the...
  15. fergmj

    Problem connecting to SQLEXPRESS with DataGridView

    I am using VS2005 (VB.NET) Professional. I installed a SQLEXPRESS and yes I am allowing remote connections via TCP/IP and shared memory -- not named pipes or VIA. I got this code working on my office machine but it isn't working with my home machine. The code connects perfectly when I am...
  16. fergmj

    Extreme Newbie Question - working with SQL 2005 with VB.NET

    I have a very simple database called CABLE. it has three tables (CLIENT, SCHEDULE, STAFF) I want to write an application that will allow me to ADD, UPDATE and DELETE rows in these tables. I am well versed in SQL so no problem there but I'm not sure how to get started in VS2005 (VB.NET) to use...
  17. fergmj

    Help Needed in Writing a Query

    I have placed a link to a spreadsheet In my everyday life, the number of rows changes so I am looking for a query that will return the row number when A1:A100="Enhancement Total" So in this case, I was thinking that when I have the row number (in this case A24), then I would go to the E...
  18. fergmj

    Handling Special Characters in xml auto

    I have a table called employees it has an employeeid, firstname, lastname etc.... I have some data in the lastname column that has special characters -- tildas and such -- for international names. In Query Analyzer I have: sp_makewebtask @outputfile = 'c:\temp\myxmlfile.xml', @query =...
  19. fergmj

    Replication of Tables

    So here is what will likely be a weird question but please bare with me. Normally, my company replicates tables from a hosted db to a SQL Server 2005 db hosted somewhere else. The purpose is to allow a customer to then use the data replicated to those tables on their SQL Server and not tamper...
  20. fergmj

    working with radiobutton groups

    I have 40 radiobutton groups. This is an online test and the user chooses one radio button from each group to answer a question. I am looking for a way to loop thru each of the radio button groups and populate my database with the value of the radiobutton that was chosen.

Part and Inventory Search

Back
Top