Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Are the errors PHP errors or logical errors?
  2. in English you are doing : a) if you have a query string AND the 'p' argument is 1 or nothing you set line 470 (although you left off the quotes on http_host) b) if you have a query string AND the reset argument is 1 AND 'p' is 1 or nothing you set line 474 (and again, you are missing quotes). So - is that what you expect? (Try adding the quotes.)
  3. If you take the time to do your own research and read the manual as I suggested, you will find an example of exactly what I believe you are looking for.
  4. You are looking for file names that match your search word? Look up the 'glob' function in the php manual.
  5. Your syntax on the multiicell calls is incorrect. See the manual. It s/b (w,h,string,border,align,fill). You have a number preceding the border parm that doesn't belong there. Also - as I discovered with the multicell - you have to reset your y position after a call to it if it puts out more than one line.
  6. Sounds suspiciously like another post on the forum - just different labels for the EXACT same homework assignment.
  7. Add an array: $sz=array("10px","12px","14px","16px","18px"); Then in your $row loop add this : echo "<span style='font-size:${sz[$row]}>"; At the end of the $col loop, add this to the newline echo: "</span>"; Be sure you keep things enclosed in the proper loops.
  8. I fail to see how it is a "close working example" when it doesn't output any numbers..... for ($I=1;$I<6;$I++) { for ($num = 1; $num<=$I;$num++) echo $num; echo "<br>"; } This should be a closer example.
  9. I wouldn't call it an "auto-complete" in that case. IMHO, an auto-complete does its thing while still presenting the same page with only the proposed results(s) being modified. To me it sounds like you want to regenerate the page after each character is typed which would be more time consuming than simply letting the user type in their search request.
  10. What are the limits of this exercise? Interesting that you began some code, but never produced any output.
  11. Is this search bar being used to pinpoint an item in a dropdown or some other screen element or do you expect this to trigger an ajax request to hit the server with some kind of 'like' query? The latter could be very cumbersome with a slow or unreliable connection, especially if you expect it to interpret your input value as your example showed, and not be just a straight auto-complete.
  12. I am all about helping! I gave you the code, didn't I? BUT - when you then say that your 'real' task is to carry this on to absurd lengths, I proposed to you that your valuable time and learning focus should be spent in better ways to help you improve as a php programmer.
  13. The change doesn't fit the syntax for the mail function. Check the manual
  14. At first glance nothing seems to be wrong. Turn on error checking and let's be sure that your script is running to the end.
  15. If you had spent 30 minutes reading a tutorial on CSS, you would have solved this by now. You create css styles in the style tag in the header section. Classes (which we are using here) are identified by a period in front of their name. The styles are described inside of braces. Hence: .color1 { color:red; font-size:16px; } creates a 'class' named 'color1' which defines the font color to be 'red' and to be 16 pixels in size; In your html you get this style by writing: <span class='color1'> blah blah blah </span> or in any other html tag. Note there is no period used here, only in the css definition.
  16. Read up on CSS for styling tips. A simple <center> tag preceding the table defn will center all data in each cell if that's all you want.
  17. Define 'name' please. And please use code tags for your postings
  18. You grab the first row of results and take its first element as your row count. Errorneous as well as the reason you lose your first row of data for display.
  19. None of you POSTED code even has a "<doctype...." in it, let alone any CSS. You Do realize that some forum readers never open up any attached files or links to such?
  20. Where is your definition of the id of character_grid?
  21. So many problems...... 1 - why do you assign querystring - you never use it. Besides - it seems rather pointless. 2 - you do error suppression on your call to query(). Why? Why? Why would you NOT want to know about an error in that call? 3 - you check if your query ran, then pull one row from it and THEN show an error and quit. I quit too.
  22. We must be speaking in tongues because the last post of code you provided does NOT have any if statement in it. Have fun. My work here is done.
  23. What IS this? Where is the implementation of the ideas I gave you? STOP USING INLINE STYLES and STOP USING DEPRECATED THINGS like <font> tags.
  24. I'm confused. Your subject mentions an if-then-else problem, but you have isolated a section of code that does not have an if statement in it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.