Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. why don't using the code from my reply #34?
  2. Got it. You only need to know who is printed/downloaded the document and you want to write down his/her name in the the file, right?
  3. so, you've got a session with name "alex", right? Try, $u_name = $_SESSION['MM_Username']; $query = "INSERT INTO upload (`username`, `name`, `size`, `type`, `content`) VALUES ('$u_name','$fileName', '$fileSize', '$fileType', '$content')";
  4. Did you get some output using var_dump() from my posting #27? If so, post out the result. You are using a select statement in wrong way. You need to learn how programming works
  5. How many tables this database has at that moment? You need to create a second table, name it for instance - users, then you should establish a connection (relationship) between upload and user tables by foreign key. Do you know how to do this? Ops....disregard this posting...you already did it ( skipped the first one ). Why? Where is the user_id in this insert statement? $query = "INSERT INTO upload (name, size, type, content ) " . "VALUES ('$fileName', '$fileSize', '$fileType', '$content')";
  6. put the following two lines on top of the file you call, just to check if you have some session already started from the previous page: <?php session_start(true); var_dump($_SESSION); ?> <html> <head></head> ...................................
  7. You need to download the same archive versions of php, apache and mysql, which your shared hosting has compiling them from source files. That process is not easy for beginners.
  8. I've got the following: Is this what you expected to be?
  9. You can also skip points from 5 to 8 from the guide trying to install it directly using pear - pecl install pdflib. You will be asked where do you want to install the files, just type "/usr/local", in case "pdflib-lite" is installed with --prefix=/usr/local.
  10. Hm....this guide works fine for me. php - 5.3.3 centos 6.5 apache - 2.2.15 What version of php do you use? How did you install php? Compiling it from source or using rpm files? What errors did you get running php -i | grep extension_dir?
  11. Turn php errors on at the top of download.php file. Can you show us how does query look like? Are you still using the following: $query = "SELECT name, type, size, content " . "FROM upload WHERE username = '$username'";
  12. in addition what the master said, try to wrap $result with single quotes (assuming PMName is a char type in mysql) $result = mysqli_query($con,"SELECT * FROM report WHERE PMName = '$results'");
  13. Of course, YES, age is relevant and it's a big factor to find a good job as a programmer in the future. So, after three or four years of self-education in php or java, you will be 33-34 year old trying to find a position for a junior developer? Come on...that said, I believe it is never too late to pick up a new skill but not to be a profession for you (unless you are really gifted) .... but I believe not.
  14. Ah.....forgive me...I forgot where I am...this is a programming help forum where age is just a number.
  15. You should start applying some security measures on the server where the project is deployed (not apache). Why the project is public?
  16. Future? What about your programming past? You don't have any previous experience if you want to find a good job in the industry. You are too old to start programming. Don't let your dreams be dreams!
  17. Check the id's value of Psycho's script - WHERE id='$id' BTW: What does schleife mean in English? Is it a German word?
  18. No, pdo wasn't added prior php 5-1.0. I remember that b/s at the same time they added pdo-mysql and pdo-firebird drivers
  19. Hm....sorry for that...I have to re-read the question one more time b/s of lacking of my English knowledge
  20. Before to start looking for that extension and self-modifying code, make sure you've got a full back up By the way, is it possible to have multiple versions of php on the same windows server? I'm not familiar with windows at all, but on my RedHat machine I've got 3 different versions of php-4.1.0, 5-1.6 and 5-3.3.
  21. There is no way in php (at least I don't know ) how to detect the screen resolution without JS. I'd suggest you of using some minimal of 1200 x 800 for 13 to 15-inch widescreen laptops.
  22. It's good to see what the workspace of Linus Torvalds looks like http://www.linuxfoundation.org/news-media/blogs/browse/2014/07/linux-creator-linus-torvalds-your-guide-rare-look-inside-his-home
  23. Isn't that what this access file is supposed to do?
  24. Welcome to phpfreaks!
  25. Something like this? <?php $str = <<<EOD <span class=CatLevel1><a onclick="Javascript:ShowMeu('21');">Arts</a> (9768)</span> <span class=CatLevel1><a onclick="Javascript:ShowMeu('271');">Industrial Products</a> (9321)</span> <span class=CatLevel1><a onclick="Javascript:ShowMeu('1273');">Baby</a> (11407)</span> EOD; if (preg_match_all('~\(([\d]+)\)~', $str,$matches)) { echo '<pre>'.print_r($matches[1], true).'</pre>'; } else { echo 'no match'; }
×
×
  • 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.