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!

Recent content by Sarky78

  1. Sarky78

    adding one control into two places

    Hi all, I'm reasonalbly new to .net so please forgive me. I've got a database, that i am using a pagedatasouce to output the pagination. I looping over the number of pages using a for loop, and am then creating an htmlgenericcontrol li within it, and assigning it to a parent...
  2. Sarky78

    Count occurances of value from a table

    Hey Both, Thanks for your responses. Simi, you solution worked a treat (hence the stars, shame i can only give one!) What i have done, is to have two stored procedures, with the code from above, and then a third procedure that combines the data into a temp table to allow me to do other stuff...
  3. Sarky78

    Count occurances of value from a table

    Simi, Sorry, I find it difficult to explain as well to be honest. So I have a database structure something like this: PhoneID ParentID PhoneName 1 0 Nokia 2 1 3G 3 1 2G 4 2 Phone1 5 2...
  4. Sarky78

    Count occurances of value from a table

    Anyone got any good ideas on how i can achieve this? Thanks Tony
  5. Sarky78

    Count occurances of value from a table

    Hey Simi, The other table contains information like: ID OffenceID 1 5 2 4 3 3 4 4 5 5 6 10 I need the output to be: ParentOffence1 (5) ParentOffence2 (1) and so on for the other parent offences in the list if one of the lower level offences exists...
  6. Sarky78

    Count occurances of value from a table

    Hi All, I'm looking to query a hierarchical table that i have written, that has a format like this: OffenceID ParentID OffenceName 1 0 ParentOffence1 2 1 ChildOffence1 3 2 GrandChild1 4 2...
  7. Sarky78

    Table corruption

    Hi All, I'm a web developer and we have a client that is using the Modx open source CMS, which connects to mySQL. Over the past week, the system has produced errors like this: Execution of a query to the database failed - Table './clientDatabase/modx_site_content' is marked as crashed and...
  8. Sarky78

    DOMDocument on a linux running centos

    apparetly the libxml is installed by default. We've done a server restart and voila the dam thing is now working. thanks for responding so soon though Tony
  9. Sarky78

    DOMDocument on a linux running centos

    Hi All, Hoping that someone can help me out there. We have written some code to allow editing of an xml file, this code loads an xml doc using DOMDocument, we are then doing an xpath expression on it and some ther processing. this is working fine on my wamp install on my PC, but putting onto...
  10. Sarky78

    Help!!!!!

    Additional: what i should have said is the outcome that i want is: select ... .... where PageID IN ( . . . . . (OR (Title LIKE '%biscuit%') OR (Title LIKE '%apple%') OR (Title LIKE '%pear%') OR (Title LIKE '%orange%') ) ) Tony
  11. Sarky78

    Help!!!!!

    George, Thanks for the suggestion, I'll give that a whirl. Borislav, sorry, that was a typo, from code i was just typing in, its not an extract of the actual query as too big. this is a cut down block: CREATE TABLE #RecipeSearchTable (PageID int, Condition nvarchar(2000), course...
  12. Sarky78

    Help!!!!!

    Hi All, This is going to be quite tricky to explain, but hang in there please..... Ok, so we are using a third party system that uses key value pairs within a database table. The basic structure is ID, SubID, Name, Value. There are multiple subID's which build up meta data about a specific...
  13. Sarky78

    Redirect to a virtual server on another server

    Hi All, I'm hoping someone will be able to help on this, at the moment our IT department is saying that its not possible, but I think everything is possible. So here we go..... We have a website that when it was developed it was running ASP/IIS and had a CMS that was based on ASP for the main...
  14. Sarky78

    XSLT grouping dates

    Dam it, something that simple. could have sworn that i tried something like that. Thank you so much Tony
  15. Sarky78

    XSLT grouping dates

    Hi all, I'm hoping that someone on here will have come across something like this before and be able to help. I've got an xml document that is returned to me via a webservice so i can;t change it. the document looks like this: <root> <news> <data alias="date">2008-10-20</data>...

Part and Inventory Search

Back
Top