39,393 Topics

Member Avatar for
Member Avatar for lordx78

[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.

Member Avatar for lordx78
0
111
Member Avatar for jtapp

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 …

Member Avatar for nav33n
0
73
Member Avatar for gingercookie

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 …

0
60
Member Avatar for jinchiruki

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">&nbsp;</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'; } …

Member Avatar for nav33n
0
99
Member Avatar for gooky9

Hi, I am currently using the follwing IF statement: if ($daybooked == 1){ print sprintf('<td align="center" bgcolor="%s">&nbsp;%d&nbsp;</td>',$opts['today_color'],$day); } else{ print sprintf('<td align="center"><font color="#999999">&nbsp;%d&nbsp;</font></td>',$day); } I would like for this statement to loop. Any ideas? Thanks, Steve

Member Avatar for nav33n
0
126
Member Avatar for devat
Member Avatar for ian_422
0
115
Member Avatar for lordx78

<!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 …

Member Avatar for lordx78
0
71
Member Avatar for asadalim1

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 …

Member Avatar for asadalim1
0
11K
Member Avatar for gopi kannan

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 …

Member Avatar for gopi kannan
0
80
Member Avatar for BillyMako

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

Member Avatar for nav33n
0
91
Member Avatar for joker40

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 …

Member Avatar for Auzzie
0
124
Member Avatar for Venom Rush

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 …

Member Avatar for b_scorpian
0
187
Member Avatar for Vai

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 …

Member Avatar for nav33n
0
119
Member Avatar for jtapp

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 …

Member Avatar for nav33n
0
125
Member Avatar for naju

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 …

Member Avatar for naju
0
91
Member Avatar for shedii

Are C & C++ knowledge required to learn php or a person good at html, css & xml can start learning php directly?

Member Avatar for richie513
0
133
Member Avatar for cristylenjoy

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 …

Member Avatar for joker40
0
70
Member Avatar for whoisit

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; …

Member Avatar for richie513
0
140
Member Avatar for scorpionz

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

Member Avatar for richie513
0
124
Member Avatar for naju

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"

Member Avatar for naju
0
3K
Member Avatar for squid44th

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 …

Member Avatar for richie513
0
162
Member Avatar for emarkus

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 …

Member Avatar for emarkus
0
84
Member Avatar for jtapp

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. …

Member Avatar for sagedavis
0
93
Member Avatar for gopi kannan

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..

Member Avatar for nav33n
0
75
Member Avatar for jino

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..

Member Avatar for nav33n
0
105
Member Avatar for divya_258

Hi, i am using PHP objects generated by pog generator.but the save method does not seem to work. why does this happen

Member Avatar for divya_258
0
172
Member Avatar for dami06

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 * …

Member Avatar for richie513
0
218
Member Avatar for Orbit2007

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; …

Member Avatar for Sulley's Boo
0
127
Member Avatar for whoisit

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, …

Member Avatar for nav33n
0
139
Member Avatar for sandeshsm

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

Member Avatar for apsivam
0
59

The End.