
alvin567
Members-
Posts
161 -
Joined
-
Last visited
Everything posted by alvin567
-
my point is I want to output the ages.
-
I have three fields in the database for a date of birth, day | month | year Output the date type If possible I want to do the manipulation in the database and output the age.
-
<html> <head> <!-- ajax functions from w3schools--> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="javascript/text"> function showSummary(str) { alert("I am an alert box!"); if (str=="")//Since select a country is "" { document.getElementById("summary").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("summary").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","getplace.php?q="+str,true); xmlhttp.send(); } </script> </head> <body> <form> <select name="country" onchange="showSummary(this.value);"> <option value="">Select:</option> <option value="SG">Name</option> </select> </form> <div id="summary"><b>Database Info</b></div> </body> <html> ----------------------------------------- Try pasting on your browser it doesn't reach the alert("I am an alert box");
-
so u mean the user_forbidden_handle() i am suppose to write it myself?
-
if (!user_has_access(__FILE__)) { user_forbidden_handle(); // what does user_forbidden_handle(); means? }
-
ok,you mean use database to set the rights?
-
example directory- files1 files2 directory2- files1 files2 I am using mysql for my membership database,and php and html for my coding that is all
-
http://forums.phpfreaks.com/index.php?topic=362350.new;topicseen#new Hi there,I am trying to write codes for my login functions, grant access rights to different php pages? any algorithms? database settings? setting of flag in the database?
-
<!-- login functions --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php include 'mysql_config.php'; include 'mysql_opendb.php'; ?> <html> <body> <form id="login" action="login.php" method="post"> Email: <input type="text" name="email"/> </br> Password:<input type="password" name="password" maxlength="12"/> </br> <input type="submit" value="submit"> </form> </body> <html> <!--login controller--> <?php if(isset($_POST['email']) && isset($_POST['password'])){ //$email =htmlspecialchars($_POST['email'],ENT_QUOTES);//special character in email $email = $_POST['email']; $password = $_POST['password']; //on alternate flow 3a) password and user id not founded. if( $email != "" || $password != ""){ $sql="SELECT * FROM user WHERE email='".$email."'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); if($password == $row['password']){ header('Location: home.php');//the pages for the members dashboard,set the type of preference. //need to sessions to set the type of users } else{ echo 'Password not founded.Contact PanelPlace SuperAdmin'; } }else{ echo 'Please fill in the username and password'; } } ?> <?php include 'mysql_closedb.php'; ?> Currently working on a login functions,it output the errors as follows in the sites.
-
Hi there,how can I design a mass mailer campaign for my business. I need to store my the list of email in the database and dispatch the email to targeted people. What are the software and configurations that I roughly need?Can anyone explain?
-
how do u write your documentations for you clients?
-
How to prevent bypass page in PHP? Let's say the order of page is: page1.php->page2.php->page3.php (complete) the user has to go through the pages to complete a process like registering Is it effective if i use session to store the prev_url:
-
Application Design For Financial Software?
alvin567 replied to alvin567's topic in Application Design
no it is free for you to choose what is needed, I was thinking about doing the application using C++ does C++ supports autocomplete and sorting using datagrid? Or how about a web based systems? -
how do I read excel spreadsheet into php?
-
Hey.There is this jobs that I am offered as a student. It says I am required to load existing data from excel spreadsheet into program and load into the relational database.It also requires me to design the relational database.It is more towards finanical data like stocks and bonds and can you suggest what are the tools softwares and language that I am supposed to use. Ok the requirements are quite vague,because I haven't mentioned that I wasn't offered the job yet. So should I use MSSQL or ms access which one is better?
-
http://juzautomate.com/index.php?option=com_content&view=category&layout=blog&id=1&Itemid=6
-
This is the blog that I owned.How can i improve the layout?I want it to be easier for people to give their comments.
-
how about adding a counter on the outer loop?