262 Posted Topics
Re: where is your SQL statement? What uis the content of `test.php`? Your form is incomplete, plus you have a FORM within a FORM. I do not beleive this is viable | |
| |
Re: Also i am sure if this would have the affect but your `DOCTYPE` is mis spelt > <DCOTYPE html> > <html> | |
Re: you could use either CSS tag: margin [Click Here](http://www.w3schools.com/css/css_margin.asp), or use a line break (<BR/>) | |
Re: how have you tried adding it in before? do you have any examples? | |
Hi all, I am working on a generic form validation class. However I have hit a stubling block. Form fields will never be the same from user to user. Is there a work around for this? Would it be easier to use numerical values for field names and use multiple … | |
Re: > I can't figure out why the contact form doesn't send me a notification email telling me someone submitted a form. You need to call in (include/require_once) when the form is submitted, which triggers an email > I don't know how to send a user a message through their email … | |
Re: dgerbergss, Have a look [here](http://dev.mysql.com/doc/refman/5.0/en/subqueries.html), it is from MySQl website and shows how to nest queries | |
Re: you havent closed the IF statement, you are missing "}" Is the image stored in the DB? Is the image displayed if you put the name in directly? | |
Re: <?php if ($second == "") { if($first - $third <= 5) { echo "<img src='images/img1.png' />"; } else { echo "<img src='images/img3.png' />"; } } else { if($first - $second <= 5) { echo "<img src='images/img1.png' />"; } else { echo "<img src='images/img2.png' />"; } } ?> Img 3 will … | |
Re: why is it stating not to use array_reverse()? What is this for? | |
Re: > <form method="post" action="signup-p.php" id="signupform"> > <div class="form"> > <div class="fieldset"> > <input name="signup_form" type="hidden" /> > <div class="input"> > <label for="username">Username</label> > <input type="text" name="user" id="username" value="" /> > </div> > <div class="input"> > <label for="email">E-mail</label> I would suggest changing all the " used in this to ' <?php … | |
Re: <table broder="1"> <tr> <td>Result 1</td> <td>Result 2</td> <td>Result 3</td> <td>Result 4</td> </tr> Then step through your while loop. For changing colour: if $result4 =='fail'{ do this } | |
Re: This tutorial may help you [Click Here](http://www.tizag.com/phpT/forloop.php) | |
Re: what is the URL before you start this script? where are you requesting the `$email` from? if you `var_dump($email);` is there a valid output? | |
WTF, i got a PM today. Please block how ever this bell end is: > Hello my name is queen how are you doing ,i hope fine i saw your profile today and became interested in you, it will be my humble pleasure to know you the more, and i … | |
Re: Where is your Login/Logout button? Assign your button a name (ie/ button_1), then use your existing IF statement. if(isset($_SESSION[user_active_statue] == 1)) { $button_1 = "Logout"; } else { $button_1 = "Login In"; } | |
Re: You could select all User email address and create an array. Then use the array in the BCC field (that way no one gets other peoples email address') | |
Re: Can you provide your form code, and also the DB layout? | |
Re: @CarterLangley You would need Java/JQuery to auto refresh the form on the change of the drop down. Give your form an ID and call submit on it using something like: `$('#myform').submit();` where 'myform' is the id of your form Or something like [this](http://stackoverflow.com/questions/329805/submit-form-when-elements-change) | |
Re: You have missed the ";" <label class="grey" for="firstname">Firstname:</label> <input class="field" type="text" name="firstname" id="firstname" size="23" value="<?php echo $firstname; ?>"/> ![]() | |
Re: > <form action="home.php" method="get"> Email:<input type="text" name="email"/> </form> also try adding `id="email"` `<form action="home.php" method="get"> Email:<input type="text" name="email" id="email"/> </form>` | |
Re: errr, 42?! (meaning to life :) ) errors? code you are using? help us to help you | |
Re: @totti2007, I came across this some time back [Click Here](http://webcheatsheet.com/php/reading_clean_text_from_pdf.php) | |
Re: the error you are seeing is relating to the login details/access rights. Is the DB user you are using got access rights to the database it self? | |
Re: karolismf, you are wanting to URL rewrite (aka MOD_REWRITE), this is done via .htaccess file. So for example you could turn this url: `www.somewebsite.com/index.php?s1=43&s4=44` Into something like: `www.somewebsite.com/43/44` | |
Re: Are you getting an error message at all? Are you amending > require_once ('includes/config.inc.php'); > require('../connections/dbconnect.php'); to ensure the correct login details | |
Re: > mysqlquery("SELECT image_id FROM image WHERE ???"); Why not : `mysqlquery("SELECT image_id FROM image WHERE user_id = $_SESSION['user_id']");` | |
I have been looking over current frameworks available and I am looking to settle on CodeIgnitor. What framework and IDE do you use? What are the plus sides, limitations of your choice? | |
Re: not sure if this is correct but remove the die statment from your redirect: <?php if ($Count == 0) { mysql_close(); header("Location: Errors/Login/Existance.php"); exit(); } ?> Also check the relativness of the path to your current script | |
Re: @BadManSam, for user login form as veedeoo syas if this is not done correctly you can leave your complete system open for some very powerful attacks. I would suggest a frame work that has been tried and tested and maintained. 2 that come to mind would be Zend_Framework found [Here](http://framework.zend.com/), … ![]() | |
Re: what work have you already done in your student project? All of these can be done, have you look over PHP.net? | |
Re: that would indicate the include file is not being created | |
Re: You could always change the string to lower case if you do not want to take case in to it: $username='TestName'; $user='testname'; $username = strtolower($username); $user = strtolower($user); if ($username==$user){ print "This is the result I want." ; }else{ print "This isn't the result I want." ; } | |
Re: To do a redirect after the SQL query you would use: `header("location:[page to redirect to]");` To edit existing data in the DB you would want to obtain the data from the DB and display in the text fields: eg `<input type="text" name="Medic24" value="<?php $variable_of_the_data; ?>size="60" />` You would change the … | |
Re: > "UPDATE web_members SET name='$name', lastname='$lastname', email='$email' WHERE id='$id'"; $PDO_con = new PDO; // Create DB connection $sql = "UPDATE web_members SET name='$name', lastname='$lastname', email='$email' WHERE id='$id'"; $q = $PDO_con->prepare($sql); $q->execute; // Execute cmd | |
Re: i maybe wrong but i think you need to have your session before any output, also i notice you are changing between MySQL and MySQLi. Is there a reason for that? | |
Re: >in php i insert some data into database. In database s_no automatic increase when any data instered. I want to get that s_no. how do i get it. Newbie1234, can you show some code you are using? What is the naming in you db table? YOu would get the s_no … | |
Re: Try this site: [Click Here](http://www.datadirect.com/resources/odbc/using-php-odbc/windows.html) Found this | |
Re: Simplest way use a form with 3 fields. current password new password Confirm Compare the current to that already in the DB table, use if stmt so if it is ok, then compare the new and confirm. If these match, update. If not throw exception | |
Re: DHCp server can be used for many things. If you have no need fo rit, i wouldnt worry to much. They assign IP address to units in a network, for example if you have a PXE server, any unit that connects to this would require an IP, so DHCp assigns … | |
Re: i am not great with javascript, but i dont think it passes variables via $_GET as you are not sending this information to the URL ![]() | |
Re: error log output? any error showing in the browser? | |
Re: no is the short answer to that, PHP is a server side logic language. You would be looking at C, or C++ something like that | |
| |
Re: yes. I would suggest driving the AVAILABLE page by PHP and database | |
Re: do you have a typo in the file name? is that the file location? |
The End.