39,393 Topics
![]() | |
[code=php] $query = "SELECT username, password FROM adminprofile WHERE username='$u' AND password=SHA('$p')"; [/code] Just wanted to know what is the function of [COLOR="Green"]SHA[/COLOR] in the code above. I took this from a book and they don't have an explanation for that particular part. Please help. | |
It's quite possible that this is impossible.. but here goes... I have some personnel data that is being reported in a table and in that table I have a field that holds a person's "title". Let's say the returned "title" results are "President", "Vice President", "Assistant To The President" and … | |
So, I bought this script that's a bit buggy. I'm not sure if this is the only problem, but I'm getting T-String error in line 16 . If anyone could see what I'm missing, I'd really appreciate it. I'm very, very new with php... in fact I've only started to … | |
already put the validation..it will prompt user the errors..but it query into database also how can i solved it?? [code] <table width="1000" height="95" border="1"> <tr> <td bgcolor="#0000FF"> </td> </tr> </table> <?php include("connect.php"); //this is your validation in the form,put it here.... if (empty($_POST['name'])) { $errors[] = 'Please enter a name'; } … | |
Hi, I am currently using the follwing IF statement: if ($daybooked == 1){ print sprintf('<td align="center" bgcolor="%s"> %d </td>',$opts['today_color'],$day); } else{ print sprintf('<td align="center"><font color="#999999"> %d </font></td>',$day); } I would like for this statement to loop. Any ideas? Thanks, Steve | |
hi dear all give me some details for which one of best suitable server for PHP+ mysql ? Thanks | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php // connection to MySQL server mysql_connect('localhost','root',''); mysql_select_db('administration'); // *** Validate request to login to this site. //session_start(); if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $loginPassword=$_POST['password']; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "admin.php"; $MM_redirecttoReferrer = true; mysql_select_db('administration'); $errors = array(); if(empty($_POST['username'])) { $errors[] = 'You think … | |
I am new to PHP or just not good at it lol, I have been trying to insert checkbox elements into a mysql database. I have a table called Team with two collumns. Id int not null auto increment PK team varchar 30 not null <? <body><form action="insert.php" method="post"> select … | |
in my page i allow the administrator to list all user records with radio buttons...and he can delete record one by one using the radio button in front of the record and clicking delete button..the radio button has the value of primary key of record to be deleted..i post that … | |
I have dates stored for logs which has three fields February 8 2008 for example. How can i do a MYSQL querry which selects the logs between march 1 2005 to december 1 2007 for example. Thanks | |
i want to solve thi assignment ....so if any one can help me with it i 'll really appreciate it. [B]Your group decided to play a game called rhyme. The game is simple; all of your friends must be in a circle and say the rhyme in clockwise turn. The … | |
Hi there I'm new to php and MySQL and I'm busy trying to build a page that when the administrator selects an item from a drop-down list, that has been populated from a database, it populates multiple text fields with the appropriate information from the database. For example, if the … | |
Any help would be greatly appreciated. Goals: 1: Send a username / password based on a username and not someone remembering their email address. 2: If it's possible to send an encrypted key, which would be a link to pass_update.php which would make the user change their password. This is … | |
First of all, please forgive my immature code.. I am a beginner and this is my first one. Could some body take a look at this and tell me why the data in my table is not populating? Thanks in advance for your time. The problem I am having is … | |
There is a another-site such as : [url]http://his-site.com[/url] there is a form on [url]http://his-site.com/submit_something.do[/url] To access this page we need to go through login from [url]http://his-site.com/login.do[/url] Now i have my site - [url]http://my-site.com/[/url] i do have the login information for his-site i need to auto-login and access the form page … | |
Are C & C++ knowledge required to learn php or a person good at html, css & xml can start learning php directly? | |
Hi im Cristy lenjoy lozada, a student from philippines,,,I am currently working on a thesis,,,Our thesis is entitled "Online reservation system ",,,My Very big problem is this... Thesis requirements: 1. First, the client will have to register on our site to be able to make reservation.. 2. After filling up … | |
I am building on a previous thread which got the user name by now asking for password as well. But for some reason it doesn't work, it jumps right to the default. Thanks for looking Here is the code [code] <?php $usern1 = Joe; $pass1 = abc; $usern2 = Jim; … | |
Hi this is ScorpionZ I need to get some idea regarding "Work FLOW SYSTEM" and IF I WANT TO CREATE Such system..... then What are the requirements? And on What Possible system is it Possible? Any help will be appreciated with great interest Thanks and Regard ScorpionZ | |
mime_content_type is not working .. i have in my php.ini as: [mime_magic] mime_magic.debug = On mime_magic.magicfile = "C:\Program Files\xampp\php\extras\magic.mime" | |
To begin with, I will state now that I know virtually nothing, zip, zero, zilch about .htaccess and mod_rewrite. That being said, I know it can be done. What I have is a framed site that has a header/footer plus left menu and main frame. What I have now is … | |
Hi I am trying to teach myself some php and get this error (below) when I query a sql database this is just a tutorial and will never go live. I have hilighted the area in bold where the unseen error is. Warning: mysql_fetch_assoc(): supplied argument is not a valid … | |
Thanks in advance for checking out my problem. Here is a fictional version of the scenario I am trying to achieve - let's say you are searching for a Department of Motor Vehicles office closest to you. So you go to a website and you plug in your zip code. … | |
when a user enters invalid username or password i redirect him to the login page again..but how can i display a message invalid usernmae in the login page..kindly help.. | |
Dear buddies,, `Fatal error: [] operator not supported for strings in c:\PHP5\www\\registration-reports-result.php on line 197` and the 197th line is if($english_level!='0'){ $query_array[]= "reg_english_level.english_level1 = '". $english_level . "' OR reg_english_level.english_level2 = '". $english_level . "' OR reg_english_level.english_level3 = '". $english_level . "'";} any help is appreciable.. Jino.. | |
Hi, i am using PHP objects generated by pog generator.but the save method does not seem to work. why does this happen | |
I have absolutly no idea what this error means or what it requires me to do but i'm getting this error message: Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DOC__ROOT/library/classes/class_dao.php' (include_path='C:\Program Files\Zend\ZendStudio-5.5.1\bin\ZendFramework\library') in C:\xampp\htdocs\capat\library\classes\class_engcis.php on line 18 [B]this is class_engcis.php[/B] [code=php] <?php /** * * engCIS local version * … | |
Okay, here goes. Learning PHP and am having trouble building a program that would let a client insert inventory in the database without having any knowledge of MySQL or PHP. Here is what I have so far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; … | |
First of all, I've just joined, so Hi to everybody. I'm also just starting to learn php, I have what I thought would be something simple but I keep getting this error Parse error: syntax error, unexpected T_STRING in /home/sites/poem-n-verse.co.uk/public_html/votes/process.php on line 8 Here is the code that I'm trying, … | |
Hello friends. I want to know , how twitter adds [email]twitter@twitter.com[/email] to Gtalk to update a user group posts through IM. If anyone has any idea then do reply me. Thank you in advance. With regards Sandesh |
The End.