1,741 Posted Topics
| |
Re: You need to put mysql_query inside the foreach loop as well.. [code=php] $values = $_GET['tta']; echo "size of array = ".sizeof($values)."<br>"; foreach ($values as $question_equation) { $sql = "INSERT INTO venn (question_equation) VALUES ('$question_equation') "; if (@mysql_query($sql)) { echo '<p>questions added</p>'; } else { echo '<p>ERROR questions not added' . … | |
Re: Welcome to Daniweb ! [quote]how do I post in the forums, I don't see a post button in hardware?[/quote] Just like you posted here ! :-/ | |
Re: Welcome to Daniweb annajee and tonydestiny1988 ! :) | |
Re: Welcome to Daniweb Rodney :) I am glad you have some nice stuff in your brains! I hope you will share it with us ;) ! Cheers, Naveen | |
Re: Welcome to Daniweb Dharmender Khosla ! But you aren't supposed to post the url of your website! (You can have it in your signature though!).. | |
Re: [quote]$teampassword=getvar("teampassword")[/quote] Missing ; at the end. Didn't you get any parse error ? Hmm! And [quote] select team_ID,teamname,teampassword from teams where teamemail='{$email}'[/quote] shouldn't that be [code=php] select team_ID,teamname,teampassword from teams where teamemail='$email' [/code] And also here, [quote]<input type='text' name='email' value='{$email}'>[/quote] Why is value='{$email'} ? When you query the table, it … | |
Re: You got it wrong.. Its not [b] ' [/b] but [b]`[/b]. | |
Re: Get a good editor.Find all the matching braces and check if all the open braces are closed properly. | |
Re: When the user registers, set the value for activation column as 0 (for that user) in the user table. When the user activates, update activation column to 1 for that user. Then, when the user tries to log in, while checking for username and password, also check if activation=1. If … | |
Re: [quote] $result = mysql_query("SELECT * FROM '$quiz_name'"); $num_rows = mysql_num_rows([b]$result12[/b]);[/quote] $result12 should be $result. | |
Re: In the next page, if you do, print_r($_POST['hello']); you will see ONLY the list of checkboxes which were checked.. | |
Re: From "What is php" to the basics of php, see [url=http://www.w3schools.com/php/default.asp] w3schools. [/url] | |
Re: You can use php's [url=http://nl2.php.net/manual/en/function.mail.php] mail [/url] function.. | |
Re: You can actually have 2 submit buttons in a form. Eg. [code=php] <?php if($_POST['submit1']) { echo "Submit1 pressed! Add/update the records"; } if($_POST['submit2']){ echo "Submit2 was pressed ! Now delete the records !"; } ?> <html> <head> <script type='text/javascript'> function confirmdel() { var val = confirm("Do you really want to … | |
Re: Everything looks good. But why do I get a horizontal scroll when I scroll over Coffee house ? Also, the menu(for coffee house) is outside the visible area(the last option, Daniweb Community feedback is partially visible). Btw, my resolution is 1024*768. | |
Re: Welcome to Daniweb! What does your thread title "ohayogozaimasu" mean ? | |
Re: Welcome back ! :) Please post your question in [url=http://www.daniweb.com/forums/forum143.html] html and css [/url] forum ! | |
Re: Hello ! Welcome to Daniweb ! [quote]Looks like an interesting place to get info when I break my computers! Cause that's what I'm good at, breaking not really fixing them[/quote] Lol ! | |
Re: [quote]I searched google for days and I couldn't find anything that works for me.[/quote] Did you search in php.net ? | |
Re: [quote] while($row==mysql_fetch_array($res)); [/quote] Remove the ; at the end. Its $row= and not $row==. [quote]also send me the exact code to fetch a table from a database in a table format in a web page!!!!! [/quote] You need to figure that out yourself.. Check the example here. [url]http://www.w3schools.com/php/php_mysql_select.asp[/url] | |
Re: Notices are not errors. You can get rid of notices by initializing a variable before using it. | |
Re: No..that isn't the problem.. The problem is missing ; in here..[quote] echo "<tr>"[/quote] | |
The End.