Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. ???
  2. Don't understand your issue. Please use code tags to post code and make it more readable.
  3. So - that's your error. A function you wrote?
  4. Are you hashing your password into the db and forgetting that when you try and find it again? Can you show us the error message you are getting?
  5. Why not use your glob call to get a list of image filenames and store it in a SESSION variable? Then display the first x images by getting their names from the session var array? When done also save the index of the last item displayed as a session var. On subsequent executions of your script - if the session vars are set, then use them to pull up the next x number of images until there are no more.
  6. Looks/sounds like an sql question, not something on a php forum.
  7. Simply read and understand what I gave you and then carry it on to whatever lengths you need it to go. Since this is a almost definitely a homework exercise, you're probably supposed to figure out a more elegant method than my brute force one so you should probably put some effort into it.
  8. I don't see a password comparison here at all. PS - Why would one create a form to SHOW somebody's password??
  9. Sounds like a home work assignment. If you really have some code that YOU have written, show it to us so that we may help you.
  10. You still have to have an ajax process hitting the server with each new addition to your search argument. Could be slow.
  11. Why did you add $naam?
  12. Because of your penchant to go into and out of PHP mode constantly, your error is because you are building that tag OUTSIDE of php mode. Better script organization and techniques would alleviate the need to use <? more than once in a script.
  13. DO YOU READ ANYTHING I WRITE? I gave you a corrected path to use. What happened when you tried it? And - did you look up the example I told you to check out earlier?
  14. 161 is probably a quote problem above there. 141 you typed something wrong in that line the last - I haven't seen so can't help btw - don't need to use php tags just because you start a new line. This kind of coding: <?php if(isset($_SESSION['user'])){?> <?php makes absolutely no sense at all. You have other instances of this silliness as well Plus - if you are not going to make use of the PHP 'heredocs' feature for your html, then at least break it up into logical chunks to make it easier to debug as you are about to do now.
  15. How about $dir = '/test/png';
  16. that's what you asked and that's what I replied. Actually you should be checking if isset and then check for a value. if (isset($_GET['request'])) if ($_GET['request'] <> '') request has a value by the way - using $_request is not safe. why aren't you simply using $_GET?
  17. No - it means it equals 1 (or possibly 'true') As for your 2nd - if it is <> null, then wouldn't you assume that is equal to anything at all?
  18. Are the errors PHP errors or logical errors?
  19. 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.)
  20. 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.
  21. You are looking for file names that match your search word? Look up the 'glob' function in the php manual.
  22. 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.
  23. Sounds suspiciously like another post on the forum - just different labels for the EXACT same homework assignment.
  24. 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.
  25. 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.
×
×
  • 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.