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 Chris 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: *

  1. dkdude

    PHP ERROR message

    Looks like you are not using the right username/password - or that there is no user named root. From the MySQL commandline, which you'll find in mysql\bin, you can try it - say your username is root and your password is 1234, you type: mysql\bin>mysql -uroot -p1234 That can tell you if...
  2. dkdude

    How do I change the date format using the echo command?

    You can also ask MySQL to do the date_format for you. Example query: SELECT DATE_FORMAT(your_date_field_name, '%m-%d-%Y') FROM your_table_name WHERE some condition or however you select...; Best, Jakob
  3. dkdude

    Mobile Website

    You can have Apache webserver detect the user-agent and then re-direct mobile clients to a mobile-optimized version of your pages ... not sure if this is what you're looking for, or? If it is and you're familiar with re-write-conditions then look at this...
  4. dkdude

    Change URL for php pages

    Like jpadie says -entirely possible that the script is far far away from your index.php: Can be a prepend script file; ie. a script that is, well, prepended -duh :p make a phpinfo() and look for Configuration, PHP Core to see if the [b]auto_prepend_file[b] directive has any values set (in wich...
  5. dkdude

    uft8 : correct in MySQL - fails in PHP

    I can't get PHP to read/output utf8 text from MySQL. Setup - win32, MySQL 5.1.30, PHP 5.2.8 My table is created like this: CREATE TABLE `pages` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `path` varchar(100) DEFAULT NULL, `pageTitle` varchar(100) DEFAULT NULL, `updatedOn` datetime DEFAULT...
  6. dkdude

    Javascript Radio button that Toggles the Validation between to textbox

    I would use javascript to validate information (format) before submitting. Something like: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Customer Registration...
  7. dkdude

    onkeypress event with prompt()

    Events apply only to DOM elements, but there are alternatives to browser prompts that you might want to consider, depending what you want to achieve...
  8. dkdude

    Align Text and form text box

    LKB6, you describe how you want to do "it" -but explain, in words/pictures/links, what "it" is you want to do for layout - Please elaborate, then we can point you in the right direction...
  9. dkdude

    .txt to .pdf

    I have used FPDF succesfully -however, I got a special project that required CMYK capabilities and then I stumbled over tcpdf - very good documentation, I recon. Good luck!
  10. dkdude

    asp.net treeview to push other content

    Agree with Vragabond -hard to tell without code, but I would say: Left tree, left-floated Right tree left-floated -both wrapped in a div ... Post some code if it still bugs :-)
  11. dkdude

    Uncommon IE6 css menu issues

    Great tip, Dan - I'll try it out on my next project! Cross-browsing-tips are always welcome :-)
  12. dkdude

    Problem with onChange in a SELECT tag.

    -and vacunita, you are right, we should be discussing this topic in the JavaScript forum ;-) Just couldn't help it :-D
  13. dkdude

    Problem with onChange in a SELECT tag.

    ... I should add -the desired function as called by a onChange-event will be fired, but initially as a onLoad-event, hence not requiring "initial" change state to fire the desired event-funtion. But as long as it's the same function, it will yield the same result ... (without initial...
  14. dkdude

    Problem with onChange in a SELECT tag.

    If I read Albion's question correct, he needs to fetch the selected index to do some "whatever-he-needs-to-do-function"; and this will accomplish just that: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html...
  15. dkdude

    Problem with onChange in a SELECT tag.

    <body onLoad="funct(this);"> should do it w/o further change.
  16. dkdude

    Freeware PDF libraries that are PDF/X3 compliant

    Hi, I've been using both fpdf and tcpdf libraries/classes in the past. However, now I need to generate PDF/X3 compliant pdf files - and neither of the two libs mentioned here can do that. I found one -PDFlib, but that is a commercial licensed product. Do you know of any freeware PDF/X3...
  17. dkdude

    What Coding Language Should I Learn?

    One more advice, Anders. When working with javascript I recommend to use the FireFox browser because it is much better for troubleshooting compared to IE. If you like FireFox, you should get the FireBug extension too - very nice web development tool. Links: FireFox FireBug Jakob
  18. dkdude

    What Coding Language Should I Learn?

    Hi Anders I absolutely agree with Chris that you should pick up some basic knowledge on Javascripting. You can Google for a tutorial that match your own learning style - I found these two: http://www.w3schools.com/js/js_intro.asp - they have excellent JS, HTML, CSS etc. references as well...
  19. dkdude

    width of elements in a form with CSS - INFO, not problem

    Jez, The difference in width seems to be caused by how browsers renders the drop-down arrow. This you have no control over. However, this will keep the illution (only tested in FF2 & IE6): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
  20. dkdude

    width of elements in a form with CSS - INFO, not problem

    Dan is right - pixel perfection is an illution. Didn't try this, but give it a swing: Try adding padding : 0; to your select style to see if that renders any difference. Sometimes is does. May not in this case though.

Part and Inventory Search

Back
Top