167 Posted Topics

Member Avatar for mhariharasudan

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.

Member Avatar for mhariharasudan
0
130
Member Avatar for omidiu
Member Avatar for karthikam
Member Avatar for veledrom

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 …

Member Avatar for somedude3488
0
88
Member Avatar for subirs77

Sorry I don't quite understand what you are trying to acheive. Is it similar to linkbuks and other sites like that?

Member Avatar for cwarn23
0
111
Member Avatar for genieuk

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 = …

Member Avatar for genieuk
0
159
Member Avatar for kssi89

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 …

Member Avatar for cwarn23
0
177
Member Avatar for genieuk

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.

Member Avatar for Josh Connerty
0
215
Member Avatar for mcakirankumar

I would prepose a print version of your stylesheet that will remove all content not need when printing the page.

Member Avatar for HITMANOF44th
0
271
Member Avatar for genieuk

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.

Member Avatar for genieuk
0
306
Member Avatar for maheen123

[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 …

Member Avatar for BzzBee
0
326
Member Avatar for justinmyoung

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 …

Member Avatar for Josh Connerty
0
236
Member Avatar for solocky

[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 …

Member Avatar for solocky
0
153
Member Avatar for KJATL

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 …

Member Avatar for meleo
0
117
Member Avatar for alexgv14

[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, …

Member Avatar for Josh Connerty
0
161
Member Avatar for srpa01red

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 …

Member Avatar for Josh Connerty
0
79
Member Avatar for brechtjah

[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 …

Member Avatar for somedude3488
0
224

The End.