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 ;)
User Profile
Collapse
-
Just some code i found out but i am currently working on it with a friend. I'll try thanks ;) -
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); ?>
-
-
So basically in every browser even when i see a pdf online it has been download even if only in a temp right?Leave a comment:
-
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 -
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']); } ?>
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?Leave a comment:
-
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)){
Leave a comment:
-
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).... -
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)
Leave a comment:
-
-
Yesterday i bailed out at lunch. Give me an hour and i'll tryLeave a comment:
-
I only now saw your post update. In my table there is that info about the fileLeave a comment:
-
-
-
ok i will try it at night and post the result. Thanks to both for all your help :)
Peace,
Slaxer13Leave a comment:
-
where you have base path its where i put the path to the folder right?
the folder is in the root folderLeave a comment:
-
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 deleteLeave a comment:
-
computerfox
I tried to do that but it does exactly the same thingLeave a comment:
No activity results to display
Show More
Leave a comment: