1,741 Posted Topics
Re: Nothing wrong with line 4.. Check if the image exists and the path is correct. Edit: Dang! I didn't see your last post.. | |
Re: echo "<tr bgcolor=$bg>"; instead of echo "<tr>"; | |
Re: Someone got bored and 'drilled' holes (small, medium and big) on a piece of paper using a pen ? | |
Re: Use blank index.html/index.php in the folder with flash files (simplest method). Or, as Auzzie has mentioned, use .htaccess. | |
Re: [QUOTE=Sulley's Boo;510003]^ eww .. O_o a perfect nightmare ..[/QUOTE] Not if your boss is a sex bomb :P | |
Re: there is no where condition for limit. [icode] select * from table where limit 0,5 [/icode] Wrong. [icode] select * from table limit 0,5 [/icode] Right. | |
Re: Thats because $_SESSION['name'], $_SESSION['password'] , $_SESSION['status'] might be empty. Where are you assigning the values for these session variables ? And Its always better to have .php extension to your scripts. :) | |
Re: See [url=http://in.php.net/mysql_real_escape_string] this [/url] , Example 2. | |
Re: [code=php] <?php $x=1; if($x==1) { $disabled="disabled=true"; } else { $disabled="disabled=false"; } echo "<Input type='button' name='button' value='button' $disabled >"; ?> [/code] :) Like this ? | |
Re: What do you mean by best format to store the selected option ? If the <option> value is an integer, have an integer field. If its an alphanumeric, have a varchar field. Is this what you are talking about ? | |
Re: Your insert query works fine on my computer. Check if you have the column names right. Also escape all the special characters using [url=http://in2.php.net/addslashes] addslashes [/url]. | |
Re: Very simple. List all the comments in the table(if any), have a textarea and a button. When the button is clicked, add the contents of textarea to the comments column. Eg. [code=php] <?php //connect //select db if(isset(submit button)){ if(!empty(textarea){ //insert into table (comments) values (textarea_contents) } } //query to display … | |
Re: I don't think its possible. When you set a cookie, setcookie expects parameter 1 and paramter 2 to be a string and not an array. [url]http://in2.php.net/setcookie[/url] Look at example 3 ! [quote]You may also set array cookies by using array notation in the cookie name. This has the effect of … | |
Re: [icode]<div><label>Name:<?php echo $_POST["name"];? ></label><br></div>[/icode] In this line, you have a whitespace after $_POST["name"];? here > It should have been like ?> . Turn on error reporting. It will help you identify your errors. If you have access to php.ini file, turn on display_errors. If you don't have access to php.ini … | |
Re: [QUOTE=zanzo;546750]hello, im a new user :S and i need help !! i need to use the hyperlink value as variable <a href="Details.php"><?php echo "$first" . " " . "$last<br>";?></a> i need to get $first and $fast to use them later in the code so how could i? plz reply fast … | |
Re: huh! How is this question (?) related to php ? And what does it even mean ? | |
Re: Check example 4 here. [url]http://us.php.net/function.mail[/url] . And, $body1 can have the variable values within double quotes. [icode]$body1 = "your resume $restitle was posted on $date"; [/icode] | |
Re: Well, If you don't specify the storage engine type, the default is MyISAM. There are different storage engine types. Here is the detailed description of the storage engines. [url]http://dev.mysql.com/tech-resources/articles/storage-engine/part_1.html[/url] Cheers, Naveen | |
| |
Re: [quote]She never brings the ball back when you throw it, and when she gets tired of the game she buries the ball. [/quote] LOL.. Welcome to Daniweb otakh! :) | |
Re: Yeah. This is just a simple example how you can assign a value to a field. [code=php] <html> <body> <form method="post" name="hidden" action="hidden.php"> <input type="text" name="action"> <input type="button" name="button" value="Update" onclick="javascript: document.hidden.action.value='1';"> <input type="button" name="button" value="Delete" onclick="javascript: document.hidden.action.value='2';"> </form> </body> </html> [/code] | |
| |
Re: Using css.. :) You can post this question in css to get better replies.. | |
Re: Line 179. $result = [icode]mysql_query->($sql); [/icode] should be [icode]$result = mysql_query($sql);[/icode] :) | |
Re: [quote]if the user changes any values in the checkbox array, I need the db updated with all changes.[/quote] You mean, from checked to unchecked and vice versa ? As ShawnCplus has already mentioned, only those checkboxes which are 'set' will be passed on to the next page. Well, if you … |
The End.