1,741 Posted Topics
Re: and view/execute your script by typing [url]http://localhost/path_of_the_file.php[/url] (Start apache before running your script!) | |
Re: 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. :) | |
Re: [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] | |
Re: [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 :) | |
Re: What exactly do you mean by "crashes" ? Doesn't it execute or umm.. or what ? | |
Re: [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. … | |
Re: Installing Wamp is VERY easy. Just double click the installer and keep hitting "ok" or "next" until the installation is complete. :) | |
Re: Why can't you have one textbox and store decimal values in it ? :-/ | |
Re: There is NO default config.php and database.class in php. :) | |
Re: Do you mean how can you concatenate $appendimagePath with myFieldName['visual'] ? [icode]$visualpath = $appendimagepath.myFieldName['visual']; [/icode] like that ? | |
Re: 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. | |
Re: 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" /> | |
Re: Use [url=http://in.php.net/htmlentities] htmlentities [/url] or [url=http://in.php.net/manual/en/function.htmlspecialchars.php] htmlspecialchars [/url]. | |
Re: [code=mysql] select * from table where keyword like "%$keyword%"; [/code] $keyword = user input. | |
Re: 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 ? | |
Re: No. $x="person".$number."male"; echo $$x will print the value stored in $person1male. (considering $number has the value 1 in it!) | |
Re: [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 … | |
Re: [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 … | |
Re: 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] | |
Re: 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. | |
Re: 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. | |
Re: [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)! | |
Re: 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.. :) |
The End.