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 strongm 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: sinbadly
  • Order by date
  1. sinbadly

    When COUNT counts wrong

    Yes, I am in the wrong section. Sorry, Feherke.
  2. sinbadly

    When COUNT counts wrong

    When I ask the table for this precise number of rows ... $result2 = @mysql_query("SELECT COUNT(*)AS t FROM 067staff WHERE m = '10' "); ... it doesn't. I'm using it for pagination on the website, but it shows every page as the last page. Is there a way to make the code behave, please?
  3. sinbadly

    Find the right 'if' for the code

    Thanks, vacunita, that seems to be the way to go. Much obliged to you.
  4. sinbadly

    Find the right 'if' for the code

    This is an example of the way I get a list of articles to appear on the webpage. I use a small image beside each brief piece of text. However, sometimes there isn't an image. How can I say within this code then, if there isn't an image, go straight onto the text, please? In different...
  5. sinbadly

    Empty hyperlink field

    I append some urls into a hyperlink field in the form. When I right-click to 'edit hyperlinks', I see that 'Text to display' has the url, but 'Type the file or web page name' is blank. The url has to be in that empty field for the hyperlink field to work. How can I code the form so that the...
  6. sinbadly

    Enabling java?

    Starblood, I put this is in the page's head section ... <script language="javascript1.2"> <!-- //Smart Folding Menu tree- By Dynamic Drive (rewritten 03/03/02) //For full source code and more DHTML scripts, visit http://www.dynamicdrive.com //Code Generated by www.SearchBliss.com var...
  7. sinbadly

    Enabling java?

    Thanks, starblood. I'll try the idea about loading the code via notepad, and report back. Many thanks for advice about dw and js. No, I've been trying it on localhost, so there isn't a lnk. Soon as I get a break to try it, I'll come back. (Probably Sunday at the present rate.) Cheers.
  8. sinbadly

    Enabling java?

    No, it doesn't work in a browser.
  9. sinbadly

    Enabling java?

    I haven't used javascript in dreamweaver8, but now I'd like to. But when I insert the code, it looks, well, dead compared to my php code. Is some enabling necessary to use java, please?
  10. sinbadly

    updating table 2 table

    Many thanks, feherke. Much obliged.
  11. sinbadly

    updating table 2 table

    I would like to update a mysql table1 field4 where id 12 from table2 field5 where id is 14. Is that sort of thing possible, please, experts? And how would the code go, please?
  12. sinbadly

    Current date function

    Many thanks, gentles. Seems to be working well.
  13. sinbadly

    Current date function

    How can I have the date field in the form automatically enter the current date as soon as something is added to the form, please?
  14. sinbadly

    eregi_replace not working

    Vagrabond, many thanks about the span instead of div. Will follow that from now on. Cheers.
  15. sinbadly

    eregi_replace not working

    Sorry, Dark Arts, I mean, for fear of causing offence.
  16. sinbadly

    eregi_replace not working

    Won't work properly without that <p> there though, Vragabond. At least, that's the way it was. However, all noted, and will try that. Justin, strip_tags() works perfectly. There's just one problem left now, and that's if I say LEFT(story, 200), often part of a word shows. I wonder if there's...
  17. sinbadly

    eregi_replace not working

    Looks brilliant, Justin. Thank you. One thing, though, is that the line in the articles with the dropcaps has this marking ... <p><div class="dropcaps">W</div>hat Mr Adie advises his clients is .... So won't I have to get rid of that '</div>' somehow?
  18. sinbadly

    eregi_replace not working

    Um, I wonder if I'm not making myself very clear. Sorry, if this is the case. The drop caps et al work very well in the proper place. Instead of writing a blurb about each article (as I do currently) I want to have just a sentence or so appear to tempt the reader in. In this position, as a...
  19. sinbadly

    eregi_replace not working

    Strip_tags(). Aha. Will try that and report back. Cheers, Justin.
  20. sinbadly

    eregi_replace not working

    Well, it does some very interesting things to the page, but doesn't exactly give the look that is desired. At first, I thought the php function that removes html characters would be the thing, but then I learned that it changes the characters into &things; and that wouldn't help. The articles...

Part and Inventory Search

Back
Top