-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
Don't understand your issue. Please use code tags to post code and make it more readable.
-
So - that's your error. A function you wrote?
-
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?
-
pagination php without mysql (or any other database)
ginerjm replied to Baldry's topic in PHP Coding Help
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. -
Looks/sounds like an sql question, not something on a php forum.
-
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.
-
I don't see a password comparison here at all. PS - Why would one create a form to SHOW somebody's password??
-
You still have to have an ajax process hitting the server with each new addition to your search argument. Could be slow.
- 6 replies
-
- autocomplete
- search
-
(and 2 more)
Tagged with:
-
Why did you add $naam?
-
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.
-
need help search images in folder and subfolder
ginerjm replied to blacktiger786's topic in PHP Coding Help
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? -
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.
-
need help search images in folder and subfolder
ginerjm replied to blacktiger786's topic in PHP Coding Help
How about $dir = '/test/png'; -
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?
-
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?
-
Are the errors PHP errors or logical errors?
-
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.)
-
need help search images in folder and subfolder
ginerjm replied to blacktiger786's topic in PHP Coding Help
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. -
need help search images in folder and subfolder
ginerjm replied to blacktiger786's topic in PHP Coding Help
You are looking for file names that match your search word? Look up the 'glob' function in the php manual. -
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.
-
Sounds suspiciously like another post on the forum - just different labels for the EXACT same homework assignment.
-
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.
-
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.