User Profile

Collapse

Profile Sidebar

Collapse
Slaxer13
Slaxer13
Last Activity: Nov 3 '15, 10:30 AM
Joined: Jun 17 '14
Location: Santiago do Cacem, Setúbal, Portugal
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Slaxer13
    started a topic Highlight cell if

    Highlight cell if

    Hy guys. I'll explain with an example.

    If cell D2 has any value then cell D2 fills with green else does nothing.

    Hope you understand. Thanks in advance ;)
    See more | Go to post

  • Slaxer13
    replied to View PDF
    in PHP
    Just some code i found out but i am currently working on it with a friend. I'll try thanks ;)
    See more | Go to post

    Leave a comment:


  • Slaxer13
    started a topic View PDF
    in PHP

    View PDF

    Hi again. In the following code, which is being used to view pdf in browser

    Code:
    <?php
      $file = 'uploads/.pdf';
      $filename = 'yolo.pdf';
      header('Content-type: application/pdf');
      header('Content-Disposition: inline; filename="' . $filename . '"');
      header('Content-Transfer-Encoding: binary');
      header('Accept-Ranges: bytes');
      @readfile($file);
    ?>
    ...
    See more | Go to post

  • Slaxer13
    replied to View PDF
    Thank you for all the help ;)
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to View PDF
    So basically in every browser even when i see a pdf online it has been download even if only in a temp right?
    See more | Go to post

    Leave a comment:


  • Slaxer13
    started a topic View PDF

    View PDF

    Hi people,
    This is my first attempt at javascript so don't mind my lack of knowledge. Can someone tell me how can i, when i click a link or button (whichever is the easiest), be able to see a PDF file in browser without having to download it?

    Any info needed just let me know.
    Thanks for the help.
    Slaxer13
    See more | Go to post

  • Also i tried to do a delete.php but isn't working.

    Code:
    <?php
    include_once 'config_db.php';
    if(isset($_GET['remove_id']))
    {
    	$res=mysql_query("SELECT file FROM tbl_ficheiros WHERE id=".$_GET['remove_id']);
    	$row=mysql_fetch_array($res);
    	mysql_query("DELETE FROM tbl_ficheiros WHERE id=".$_GET['remove_id']);
    }
    ?>
    Can someone tell what's wrong?
    See more | Go to post

    Leave a comment:


  • @Atli
    I have an issue... If i change the name of the get_file.php in all code and the name of the file itself, when i try to download it always asks for that specific file (get_file.php). Why is this?
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to Fill List/Menu box
    in PHP
    So i managed to make my listbox show the records...

    Code:
            <select name="select" class="textfields" id="ddl_id">
            	<option id="0">-- Selecione o ID --</option>
                <?php
    				require("dbconfig.php");
    				$get_ids = mysql_query("SELECT * FROM tbl_utilizadores");
    				while($vertodos = mysql_fetch_array($get_ids)){
    ...
    See more | Go to post

    Leave a comment:


  • Slaxer13
    started a topic Fill List/Menu box
    in PHP

    Fill List/Menu box

    Hi guys,

    I want to know how to fill a list/menu box with the column: "id_utiliza dor" from table: "tbl_utilizador es" from database: "db_faq".

    And when i select a id on that box i want it to fill the fields, which are ("utilizador ", "email", "password", "administrator" ).

    This page is a update page for admin use only (that is taken care of)....
    See more | Go to post
    Last edited by Slaxer13; Jun 1 '15, 11:30 AM. Reason: PS Added

  • Slaxer13
    replied to Download file problem
    in PHP
    The folder is in the root folder so i suppose this is what you told me to do

    Code:
    <?php
        require 'dbconfig.php';
     
        $query = "SELECT * FROM tbl_uploads";
        $result = mysql_query($query) or die('Error, query failed');
     
        if(mysql_num_rows($result)==0){
            echo "Database is empty <br>";
        }
         else{
            while(list($id, $name,$name)
    ...
    See more | Go to post

    Leave a comment:


  • I see a white square in a bigger black one
    See more | Go to post

    Leave a comment:


  • Yesterday i bailed out at lunch. Give me an hour and i'll try
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to Download file problem
    in PHP
    I only now saw your post update. In my table there is that info about the file
    See more | Go to post

    Leave a comment:


  • Sorry for the delay. How can i see that?
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to Download file problem
    in PHP
    Always ;)

    Peace,
    Slaxer13
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to Download file problem
    in PHP
    ok i will try it at night and post the result. Thanks to both for all your help :)

    Peace,
    Slaxer13
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to Download file problem
    in PHP
    where you have base path its where i put the path to the folder right?
    the folder is in the root folder
    See more | Go to post

    Leave a comment:


  • Slaxer13
    replied to Download file problem
    in PHP
    The download link is in a page where the user can see all the files in the folder. The user can see, upload and download files in the same page. And if is the admin he can also delete
    See more | Go to post

    Leave a comment:


  • computerfox

    I tried to do that but it does exactly the same thing
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...