167 Posted Topics
Re: Have you read this tutorial: [url]http://www.phpriot.com/articles/images-in-mysql/8[/url] The most important part is it header function that will tell the browser the mime type of the file. | |
Re: Do you have a server side language? | |
Re: Yes probably the best way but files such as images and CSS documents JS dosument MUST MUST MUST be availbale to the public there is no way around this! If you do however have to put them in a folder in the web root then the htaccess command "deny from … | |
Re: Sorry I don't quite understand what you are trying to acheive. Is it similar to linkbuks and other sites like that? | |
Re: Hello again genie :), I will try my best to format your code... [code=php] <?php include("dbconnect.php"); $dtime = date('F jS Y, h:iA'); $ip = $_SERVER['REMOTE_ADDR']; $host = gethostbyaddr($ip); $agent = $_SERVER['HTTP_USER_AGENT']; $uri = $_SERVER['REQUEST_URI']; $ref = $_SERVER['HTTP_REFERER']; if($dtime == ""){ $dtime = "None Recorded"; } if($ip == ""){ $ip = … | |
Re: No I always use the ' to add data. Does this fill your fields exactly? and is this the order in wich yu have to put them in? I would try: mysql_select_db("ecommerce"); $query = "INSERT INTO products (id, item, description, price, date) VALUES ( '00001', 'toothbrush', 'Brush your teeth with … | |
Re: Have you looked into adding a php.ini files to get around what your host isn't allowing you to do. This solved my globals problem. | |
Re: I would prepose a print version of your stylesheet that will remove all content not need when printing the page. | |
Re: Try to make sure the file is in the current directory. Also an easier method of getting a files contents would be to use the get contents method: [icode] $theData = file_get_contents( "counter.txt" ); [/icode] Thats it. | |
Re: [QUOTE=maheen123;849489]Hi! I want to know that how can i use buttons to update ( edit or delete) records from the php form directly into the database... Thanks[/QUOTE] Ok what you are trying to do it edit a table right... If you want to display the row in the form for … | |
Re: Do you have access to any server-side scripting(PHP, ASP, JSP) etc.? If so you can configure a script to count all the times the image is viewed. Else you may need to use a thrid party site to count it for you. Others with web servers may do this for … | |
Re: [QUOTE=solocky;848149]Hello all i have (after much googleing) written a php script which when activated appends to a main text file with the text seen below in this exact format type= name=---------------------------------------------------------------------------------------------- # type= name=(USER INPUT HERE) # type= name=---------------------------------------------------------------------------------------------- # what i need is a simple webform with one input … | |
Re: Are these three seperate documents? If os the post values will only be passed onto the document you secify in the action attribute of your form after you move from this page the post data is destroyed. If you need to move the data from the second page to the … | |
Re: [QUOTE=alexgv14;847100]I have been trying to format a date that I receive from a value in a mysql database. The format in mysql is as follows. 1986-08-02 I want to convert that to Aug. 2, 1986 I tried the date function in php and it was not working for me. Anyone, … | |
Re: I'm not 100% sure but it usually means one of the following - The file does not exist - The file does not have the correct permissions (chmod[linux/unix]/Read Only[windows/dos]) - MySql doesn't have permission to open, edit or create the file Any of the listed can cause this. As I … | |
Re: [QUOTE=kkeith29;844002]why are you using javascript at all in the login process? I mean, only use it for basic validation not hashing. That in itself is a security flaw because attackers can see how you are encrypting a password, which helps them to crack it. What if a user has javascript … |
The End.