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 wOOdy-Soft 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 iteach2

  1. iteach2

    Face xhtml page has empty components

    Yes, It is a jsf application. I'm wondering why my bean reference {#bean.property} is not being populated. Even with beans that work on other pages. No bean reference gets populated. Do I have to register my page somewhere?
  2. iteach2

    Face xhtml page has empty components

    Hello gurus! I have an xhtml page. No component seems to get populated with bean data. I have tried components that work on other pages and they will not work on this page. They will display but the dynamic data is empty. For example I have a dropdown list that will populate on other pages...
  3. iteach2

    SQL QUERY RESULTS DISPLAY

    Gurus, Can i make the results of a query display like this Content a attribute 1 attribute 2 Instead of: Content a attribute 1 Content a attribute 2 Where content can have multiple attributes?
  4. iteach2

    HELP! Compilation Error - .NET newbie

    Hi Gurus, I just inherited a .net app and I am a PHP programmer. THe error looks like this: Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error...
  5. iteach2

    PHP CURL: Login to HTACCESS directory; POST username/password to FORM

    Hi, I have a curl script that I am developing, it needs to post username and password to a windows authentification, then on the next page is a form looking for username and password. How do I post to the windows authentification(.htaccess) then post to the login form a user and password...
  6. iteach2

    Search block of text for term(s). Extract sentence that has term in it

    Hello jpadie, I actually just used the getPara and applied a truncation function to it. Thank you so much once again.
  7. iteach2

    Search block of text for term(s). Extract sentence that has term in it

    Hello jpadie, I was wondering what I would need to change in your function to just count a certain amount of words before the term and after the term. something more generic because some of my results don't have periods at all causing no results to come back. Thank you so much.
  8. iteach2

    Search block of text for term(s). Extract sentence that has term in it

    Thank you jpadie, You are dangerous with those regular expressions! I was getting a blank screen when I ran the function so I modified a bit below: function getSentence ($needle, $haystack) { $haystack = strip_tags($haystack); $pattern = "/(^|\.\s+)(.*?".$needle.".*?)\./i"...
  9. iteach2

    Search block of text for term(s). Extract sentence that has term in it

    I would like to get everything in that sentence or paragraph. Kinda like how google search results will bring back the term in a sentence underneath the search results.
  10. iteach2

    Search block of text for term(s). Extract sentence that has term in it

    Hi Gurus, I am attempting to write a function that will go through a block of text and extract the needle and from the haystack. But I want the text before and after the needle as well. function findTerms($term, $content) { strip_tags($content); $pieces = explode(".", $content)...
  11. iteach2

    PHP4 XML HELP

    Hi Gurus, I am using code from yahoo developer network to retrieve/parse the XML below into an Array: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <SearchResult count="388" xmlns=""> - <products> - <productSummary id="1010042542"> <manufacturer sku="45010" name="Elite...
  12. iteach2

    PHP Array to Menu

    Guru's, Once again I need your help please. I have three arrays each array is based on its own database quiery - select * from ____ 1 array. Departments 2 array. Category 3. array. Subcategory It looks like this: Array ( [0] => Array ( [DepID] => 10015...
  13. iteach2

    Pass QueryString to iframe

    I have an iframe open via a link. When I try to access the querystring of the referring page it is blank, so my $_GET[] is null. Is there any way to reference the querystring using $_GET. Can I do a fake HTTP_GET.
  14. iteach2

    Insert Array into one record in Database; Not multiple records

    Heres what I cam up with: mysql_query($SQL) or die(mysql_error()); $uid2 = mysql_insert_id(); $SQL3="INSERT INTO dept(uid) VALUES ('$uid2')"; mysql_query($SQL3) or die(mysql_error()); foreach ($depts as $key => $val) { $SQL2 = "UPDATE dept SET uid='$uid2', $val='Y'...
  15. iteach2

    Insert Array into one record in Database; Not multiple records

    Hi Folks, I have a table called DEPT. It has 24 fields. I have 24 possible form variables that can be stored in my form array. I am attempting to loop through my form array, and each insert 'Y' into each database field that matches my form variables name. What I have is inserting but if I...

Part and Inventory Search

Back
Top