1,741 Posted Topics

Member Avatar for NickRoss

and view/execute your script by typing [url]http://localhost/path_of_the_file.php[/url] (Start apache before running your script!)

Member Avatar for nav33n
0
60
Member Avatar for eparse

Instead of `$row = mysql_fetch_array($result)` use, `while($row = mysql_fetch_array($result)) { ` AND echo "Thanks for logging in."; header("http://www.google.com"); will give you an error because you can't output anything before header function. Either echo a message or redirect the user. :)

Member Avatar for nav33n
0
108
Member Avatar for anasta

[quote]echo '<form action="<?php $PHP_SELF; ?>" method="POST">';[/quote] This is wrong. Use this instead. [icode]echo '<form action='.$_SERVER['PHP_SELF'].' method="POST">'; [/icode]

Member Avatar for nav33n
0
77
Member Avatar for makmicheal
Member Avatar for Munyiri
Member Avatar for Elmo_loves_you
Member Avatar for luisrc
Member Avatar for fnazir89
Member Avatar for november_pooh
Member Avatar for jbett
Member Avatar for lip07iie
Member Avatar for Bob Jacobs
Member Avatar for 2bu
Member Avatar for fluidtype
Member Avatar for lordx78

[QUOTE=lordx78;560039]no problem with the upper, managed to solve myself. Thank you very much for your reply.[/QUOTE] Can you tell us how you solved your problem ? Maybe it will help someone else having the same problem :)

Member Avatar for nav33n
0
74
Member Avatar for toadzky

What exactly do you mean by "crashes" ? Doesn't it execute or umm.. or what ?

Member Avatar for toadzky
0
103
Member Avatar for Seelie
Member Avatar for Joatmon
Member Avatar for aravindkishore

[QUOTE=aravindkishore;557814]Hi every one, Why I am getting wrong time when I am using date('H:i:s').I am working on localhost. Please help how to get correct time. Thanks and Regards, Aravind Kishore.P[/QUOTE] hmm.. Because it displays the time in UTC. If you want the exact time, add the time difference using mktime. …

Member Avatar for aravindkishore
0
85
Member Avatar for heshangho

Installing Wamp is VERY easy. Just double click the installer and keep hitting "ok" or "next" until the installation is complete. :)

Member Avatar for heshangho
0
98
Member Avatar for vijukumar

Why can't you have one textbox and store decimal values in it ? :-/

Member Avatar for silviuks
0
93
Member Avatar for vijukumar
Member Avatar for nav33n
0
108
Member Avatar for welbyobeng

Do you mean how can you concatenate $appendimagePath with myFieldName['visual'] ? [icode]$visualpath = $appendimagepath.myFieldName['visual']; [/icode] like that ?

Member Avatar for welbyobeng
0
92
Member Avatar for activex786
Member Avatar for drkdragonlord
Member Avatar for scorpionz

If you are storing the banner path in an array, you can use [url=http://in2.php.net/manual/en/function.array-rand.php] array_rand [/url] function to randomise the array. You can also use rand function to generate a random number and fetch that record number from the array.

Member Avatar for scorpionz
0
150
Member Avatar for duttydea

Since $field4 is storing the path of the image, as Shawncplus has already said, use <img src> tag. ie., <img src="<?php echo $field4; ?>" alt="image" />

Member Avatar for nav33n
0
88
Member Avatar for wawaron
Member Avatar for CyberAngel
Member Avatar for allanrm
Member Avatar for C. A. Cross
Member Avatar for Pilate
Member Avatar for naju

Use [url=http://in.php.net/htmlentities] htmlentities [/url] or [url=http://in.php.net/manual/en/function.htmlspecialchars.php] htmlspecialchars [/url].

Member Avatar for naju
0
82
Member Avatar for lydia21

[code=mysql] select * from table where keyword like "%$keyword%"; [/code] $keyword = user input.

Member Avatar for nav33n
0
68
Member Avatar for OmniX

What is the problem ? When the user uploads an image, I m sure you will be saving the path of the image. When the user clicks on delete, get the id of that image and unlink the file. What exactly is your problem ?

Member Avatar for OmniX
0
168
Member Avatar for gburya
Member Avatar for d.adriel
Member Avatar for Dhaval_Vora
Member Avatar for OmniX

No. $x="person".$number."male"; echo $$x will print the value stored in $person1male. (considering $number has the value 1 in it!)

Member Avatar for OmniX
0
63
Member Avatar for su-d
Member Avatar for cmhampton
Member Avatar for Dani
Member Avatar for foya
Member Avatar for lordx78

[quote]I wanted to how do we upload an image path(url) into the MySql database and call it through PHP. [/quote] When you upload an image, you upload it to a path. Store the path in a variable and at the time you upload, insert a record to the table containing …

Member Avatar for lordx78
0
139
Member Avatar for Nitefly

[quote]However, I should notice that I have added $framePage to the included pages, other wise, I have an error : Undefined framePage variable [/quote] The 'error' you are getting is not an error but a notice. If you have turned on notices in your error_reporting, you will get these kinda …

Member Avatar for kamaster
0
138
Member Avatar for kishou

First of all, you dont have an extension to the file. secondly, you aren't writing anything to the file. Eg. [code=php]<?php header('Content-Disposition: attachment; filename=filename.txt'); echo "blah blah"; ?> [/code]

Member Avatar for nav33n
0
79
Member Avatar for jjasoningram

Assign all these values [icode]'$good_data[Custnombre]','$good_data[Custemail]','$good_data[8x10]','.... [/icode] to a variable and try again! And, shouldn't it be $good_data['8x10'] instead of $good_data[8x10] ? Btw, next time you post your code, please post it within [code =php] [/code ] tags.

Member Avatar for JRSofty
0
106
Member Avatar for bornok15

Can you be more specific ? Well, [url=http://in.php.net/manual/en/language.oop5.php] here [/url] is the link for php5 oop concepts. And [url=http://in.php.net/oop] this [/url] is the link for php 4 oop concepts.

Member Avatar for bornok15
0
133
Member Avatar for eparse

[quote]however from second page link to the 3rd page, $_SESSION['name'] cant be shown anymore, there is just a blank.[/quote] As buddylee has mentioned, you need to have session_start on top of every page. And also, check if $_SESSION['name'] is over-written by any other variable (so that $_SESSION['name'] is null)!

Member Avatar for nav33n
0
76
Member Avatar for turtlelove

Hello turtlelove. First of all, welcome to Daniweb.. And, there are many 'learn yourself', 'for dummies', etc books which are good for beginners. Pick up one and start learning! Good luck.. :)

Member Avatar for Auzzie
0
174

The End.