Jump to content

~n[EO]n~

Members
  • Posts

    729
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

~n[EO]n~'s Achievements

Member

Member (2/5)

0

Reputation

  1. You can change the query SELECT * FROM news ORDER BY `id` DESC; will list the rows in descending order
  2. I bet this thread is going to be locked Why ?
  3. <?php $string = "abc de ei ao aioin eio"; echo substr_count($string, ' '); // 5 ?>
  4. You can use limit SELECT * FROM members WHERE username='$_SESSION[username] LIMIT 1; this will limit the record to 1
  5. I do it like this <?php // $FILES file_pdf is name of the file field if(!ereg(".pdf", $_FILES["file_pdf"]["name"])) { echo "File should be of .pdf extension"; } else { echo "File is valid..."; } ?>
  6. See this, <?php if (preg_match('/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i', $emailused)) { echo 'Email entered is valid'; } else { echo 'Email entered is not valid'; } ?>
  7. If there was no 'C' others would not have existed. So, let us C.
  8. http://www.sitepoint.com/article/guide-url-rewriting http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
  9. Ok , i got the first one working. Thanks a lot... One more thing i need to ask, now i got the directory listed as i want like below, i don't want to show that images folder and files inside it , in which part i need to add the code, i am not familiar with class and functions...
  10. When i keep default (as you gave) it shows Config.Msi Documents and Settings Administrator folders etc... when i keep traverseDirTree('/','dofile','dodir'); it shows the same and keeping blank gives error traverseDirTree(' ','dofile','dodir'); Warning: readdir(): supplied argument is not a valid Directory resource in C:\wamp\www\open_template\open_cms.php on line 17 BTW, i want to show directory inside the folders not from outside My folder is this open_template -- templates -- thunder -- thunder -- index.html -- the wild -- same as above i want to list the directory inside templates and my OS is Win XP Thanks
  11. Ok thanks rarebit, i used the second one but it is showing file structure of C:/ where to change the path
  12. It says Yikes, www.suchy.gniezno.pl isn't loading right now.
×
×
  • 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.