Jump to content

MachineGamer

Members
  • Posts

    13
  • Joined

  • Last visited

MachineGamer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks for the reply admin ,but my problem is that i already start working with php and i've never used a javascript or jquery ,and i don't have time to start learning again ,it's for my final project in university and i only have 1 week or less that's why i asking and i hope that i get the answer thanks for your reply !
  2. hey i am stuck i want some help in my script ,in the first time i was using this line of code: echo "<td>{$rows['tp']}<a href='edittd.php?edit={$rows['Nom_Matiere']}&number={$rows['Numero']}'> insirer <a></td>"; and when i click on insert they lead me to this page (line of code): <?php include_once('base.php'); echo mysql_error(); if(isset($_GET['insert'])){ $Matricule = $_GET['insert']; $Id_Matiere = $_GET['number']; $res = mysql_query("select * from evaluation WHERE Matricule = '$Matricule'"); $rows = mysql_fetch_array($res); } echo mysql_error(); if(isset($_POST['Td'])){ $Matricule = $_POST['Matricule']; $Id_Matiere = $_GET['number']; $Td = mysql_real_escape_string($_POST['Td']); $sql = "UPDATE evaluation SET Td = '$Td' WHERE Matricule = '$Matricule'"; //$sql = "UPDATE `evaluation` SET `Td=15 WHERE `Matricule`=1"; $res = mysql_query($sql) or die("Could not update ".mysql_error()); echo "<meta http-equiv='refresh' content='0;url=edittd.php'>"; echo "You/'ve Successfully insert the Td Note Thanks."; //INSERT INTO `b_database`.`evaluation` (`Matricule`, `Id_Matiere`, `Td`, `Tp`, `Exam`, `Ratrapage`) VALUES ('13458', '14', '3.25', '0', '0', '0') } ?> <form action="instd.php" method="POST"> TD: <input type="text" name="Td" value="<?php echo $rows['Td'];?>"><br> <input type="hidden" name="Matricule" value="<?php echo $rows[0];?>"> <input type="submit" value="insert"> </form> so i will be able to update mu values into my database, but it's too slow for any user to insert data if i have a lot of values in my array do the user have to click on every insert button to lead him to another page and update the value so , i was thinking to change my code of line to this : echo "<td><input type='text'> </td>"; so they can insert a lot of values in one line and click on one submit button and all the values get stored into my database ,so please how can i include the 1st line of code echo "<td>{$rows['tp']}<a href='edittd.php?edit={$rows['Nom_Matiere']}&number={$rows['Numero']}'> insirer <a></td>"; to this input type echo "<td><input type='text'> </td>"; and the textbox recognize every row like he did on insirer : {$rows['Nom_Matiere']}&number={$rows['Numero']} thanks in advance !
  3. I wanted some help in php. I am making a website for a university in php which will have a information to be displayed for every teacher ,so the same page will be visible in diffrent information depend on the login email ! right now, i have created my database and script of login ,but it's without session or cookies ,do i need those two to display a diffrent information with mysql query thanks in advance! ----------login.php---------- ?php require_once('init.php'); include_once("scripts/connect.php"); $login_error = ""; $email = ""; $password= ""; if(isset($_GET['login'])){ $email = strip_tags(mysql_real_escape_string($_POST['email'])); $password = strip_tags(mysql_real_escape_string($_POST['password'])); $sql = mysql_query("SELECT mail_enseignant,Nom_Enseignant,Mot_de_passe FROM enseignant WHERE mail_enseignant='".$email."' AND Mot_de_passe='".$password."' LIMIT 1"); echo mysql_error(); if(mysql_num_rows($sql) == 1){ $row = mysql_fetch_assoc($sql); $_SESSION['mail_enseignant'] = $row['mail_enseignant']; $_SESSION['Nom_Enseignant'] = $row['Nom_Enseignant']; $_SESSION['Mot_de_passe'] = $row['Mot_de_passe']; header("Location: note-on.php?email=$email"); exit(); }else{ $login_error="invalid Information..."; } } ?> <h3>Ensiegnant Login Below</h3> <form action="?login" method="post" > <fieldset> <legend>Enseingant Login</legend> <p>Mail_Ens: <input type="text" name="email" value="<?php echo $email;?>" /></p> <p>Password: <input type="password" name="password" value="<?php echo $password;?>" /></p> <p> <?php if (isset($login_error) && ($login_error != "")){ echo "<p style='margin-right: 10px;color: #ff0000'>".$login_error."</p>"; }?> <input type="submit" value="Login Enseignant" name="submit_login"/></p> <!-- <input type="image" src="images/sign_in.gif" id="signin" alt="Sign In" />--> </fieldset> </form> and this is the page that i wanna desplay a diffrent informaition based on the email of teacher logged in with --------note-on.php---------- <div id="left_column"> <div class="holder"> <h2 class="title">Speciality & Groupe</h2> <ul class="nostart"> <select name="select" class="textfields" id="Speciality"> <option id="0">-- Select Speciality --</option> <?php echo $_SESSION['mail_enseignant']; ?> <?php if(isset($_GET['email'])){ $getallSpeciality = mysql_query("select Nom_Specialite from specialite where enseignant.mail_enseignant='".$email."'and enseignant.Id_Enseignant=affecte.Id_Enseignant and affecte.Id_Groupe=groupe.Id_Groupe and specialite.Id_Specialite=groupe.Id_Specialite"); while($viewallSpeciality = mysql_fetch_array($getallSpeciality)){ ?> <option id="<?php echo $viewallSpeciality['Id_Specialite']; ?>"> <?php echo $viewallSpeciality['Nom_specialite'] ?></option> <?php }} ?> </select> </ul> </div> my query didn't work what's the problem am i doing wrong in seting the email or waht please correct my code thanks !
  4. ok i already created this one : -----login.php---------- <?php require_once('init.php'); include_once("scripts/connect.php"); $login_error = ""; $email = ""; $password= ""; if(isset($_GET['login'])){ $email = strip_tags(mysql_real_escape_string($_POST['email'])); $password = strip_tags(mysql_real_escape_string($_POST['password'])); $sql = mysql_query("SELECT mail_enseignant,Nom_Enseignant,Mot_de_passe FROM enseignant WHERE mail_enseignant='".$email."' AND Mot_de_passe='".$password."' LIMIT 1"); echo mysql_error(); if(mysql_num_rows($sql) == 1){ $row = mysql_fetch_assoc($sql); $_SESSION['mail_enseignant'] = $row['mail_enseignant']; $_SESSION['Nom_Enseignant'] = $row['Nom_Enseignant']; $_SESSION['Mot_de_passe'] = $row['Mot_de_passe']; header("Location: Login/note-on.php"); exit(); }else{ $login_error="invalid Information..."; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr"> <head profile="http://gmpg.org/xfn/11"> <title>Département Math-Info</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="stylesheet" href="styles/layout.css" type="text/css" /> </head> <body id="top"> <div class="wrapper row1"> <div id="header" class="clear"> <div class="fl_left"> <h1><a href="index.php">Département Math-Info</a></h1> <p>Just Pour Vous</p> </div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row2"> <div id="topnav"> <ul> <li><a href="index.php">Homepage</a></li> <li class="active"><a href="style-demo.php">Contact Us</a></li> <li><a href="nouveaute.php"> Nouveauté</a></li> <li><a href="note-off.php">NOTE TAB</a></li> <li class="last"><a href="gallery.php">Gallery</a></li> </ul> <div class="clear"></div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row4"> <div id="container" class="center"> <!-- ####################################################################################################### --> <h3>Ensiegnant Login Below</h3> <form action="?login" method="post" > <fieldset> <legend>Enseingant Login</legend> <p>Mail_Ens: <input type="text" name="email" value="<?php echo $email;?>" /></p> <p>Password: <input type="password" name="password" value="<?php echo $password;?>" /></p> <p> <?php if (isset($login_error) && ($login_error != "")){ echo "<p style='margin-right: 10px;color: #ff0000'>".$login_error."</p>"; }?> <input type="submit" value="login" name="submit_login"/></p> <!-- <input type="image" src="images/sign_in.gif" id="signin" alt="Sign In" />--> </fieldset> </form> <!-- ####################################################################################################### --> <div class="clear"></div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row5"> <div id="footer" class="clear"> <!-- ####################################################################################################### --> <div class="foot_contact"> <h2>University Name Here</h2> <address> Address Line 1<br /> Address Line 2<br /> Town/City<br /> Postcode/Zip </address> <ul> <li><strong>Tel:</strong> xxxxx xxxxxxxxxx</li> <li><strong>Fax:</strong> xxxxx xxxxxxxxxx</li> <li class="last"><strong>Email:</strong> <a href="#">contact@mydomain.com</a></li> </ul> </div> <div class="footbox"> <h2>Administration</h2> <ul> <li><a href="#">Disclaimer</a></li> <li><a href="#">Accessibility</a></li> <li><a href="#">Freedom of Information</a></li> <li><a href="#">Website Privacy</a></li> <li><a href="#">Press Release Information</a></li> <li><a href="#">Annual Report</a></li> <li><a href="#">Financial Statements</a></li> <li><a href="#">Job Vacancies</a></li> <li class="last"><a href="#">Semester Dates</a></li> </ul> </div> <div class="footbox"> <h2>Link Block 2</h2> <ul> <li><a href="#">Schools and Colleges</a></li> <li><a href="#">Student Activities</a></li> <li><a href="#">Student Affairs</a></li> <li><a href="#">Student Development</a></li> <li><a href="#">Student Financial Services</a></li> <li><a href="#">Student Group Directory</a></li> <li><a href="#">Student Life</a></li> <li><a href="#">International Students</a></li> <li class="last"><a href="#">Global Learning</a></li> </ul> </div> <div class="footbox last"> <h2>Link Block 3</h2> <ul> <li><a href="#">Academic Advisory</a></li> <li><a href="#">Academic Assistance</a></li> <li><a href="#">Academic Calendars</a></li> <li><a href="#">Academics Office</a></li> <li><a href="#">Administration</a></li> <li><a href="#">Adult Learners</a></li> <li><a href="#">Alumni Chapters</a></li> <li><a href="#">Alumni Events</a></li> <li class="last"><a href="#">Residential Colleges</a></li> </ul> </div> <!-- ####################################################################################################### --> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper"> <div id="copyright" class="clear"> <p class="fl_left">Copyright © 2013 - All Rights Reserved - <a href="#">Domain Name</a></p> <p class="fl_right">Template by <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a></p> </div> </div> </body> </html> ----------init.php-------- <?php session_start(); ?> is it correct ?? please give me some tips on how to make the user logged in see pages that can't see when he logged out ,all i am doing is that if the user sign in correct i redirect him to other pages that i have made to display is that what i have to do ,and do i have to include the init.php in every page that i made thanks !
  5. Hey there , i am newbie in php ,please anyone can help me to create a login and logout form with session ,i already create one ,but i think it's not that good : <?php require_once('init.php'); include_once("scripts/connect.php"); $login_error = ""; $email = ""; $password= ""; if(isset($_GET['login'])){ //tags remove html tags $email = strip_tags(mysql_real_escape_string($_POST['email'])); $password = strip_tags(mysql_real_escape_string($_POST['password'])); $sql = mysql_query("SELECT mail_enseignant,Nom_Enseignant,Mot_de_passe FROM enseignant WHERE mail_enseignant='".$email."' AND Mot_de_passe='".$password."' LIMIT 1"); echo mysql_error(); if(mysql_num_rows($sql) == 1){ $row = mysql_fetch_assoc($sql); $_SESSION['mail_enseignant'] = $row['mail_enseignant']; $_SESSION['Nom_Enseignant'] = $row['Nom_Enseignant']; $_SESSION['Mot_de_passe'] = $row['Mot_de_passe']; header("Location: Login/note-on.php"); exit(); }else{ $login_error="invalid Information..."; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr"> <head profile="http://gmpg.org/xfn/11"> <title>Département Math-Info</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="stylesheet" href="styles/layout.css" type="text/css" /> </head> <body id="top"> <div class="wrapper row1"> <div id="header" class="clear"> <div class="fl_left"> <h1><a href="index.php">Département Math-Info</a></h1> <p>Just Pour Vous</p> </div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row2"> <div id="topnav"> <ul> <li><a href="index.php">Homepage</a></li> <li class="active"><a href="style-demo.php">Contact Us</a></li> <li><a href="nouveaute.php"> Nouveauté</a></li> <li><a href="note-off.php">NOTE TAB</a></li> <li class="last"><a href="gallery.php">Gallery</a></li> </ul> <div class="clear"></div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row4"> <div id="container" class="center"> <!-- ####################################################################################################### --> <h3>Ensiegnant Login Below</h3> <form action="?login" method="post" > <fieldset> <legend>Enseingant Login</legend> <p>Mail_Ens: <input type="text" name="email" value="<?php echo $email;?>" /></p> <p>Password: <input type="password" name="password" value="<?php echo $password;?>" /></p> <p> <?php if (isset($login_error) && ($login_error != "")){ echo "<p style='margin-right: 10px;color: #ff0000'>".$login_error."</p>"; }?> <input type="submit" value="Login Enseignant" name="submit_login"/></p> <!-- <input type="image" src="images/sign_in.gif" id="signin" alt="Sign In" />--> </fieldset> </form> <!-- ####################################################################################################### --> <div class="clear"></div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row5"> <div id="footer" class="clear"> <!-- ####################################################################################################### --> <div class="foot_contact"> <h2>University Name Here</h2> <address> Address Line 1<br /> Address Line 2<br /> Town/City<br /> Postcode/Zip </address> <ul> <li><strong>Tel:</strong> xxxxx xxxxxxxxxx</li> <li><strong>Fax:</strong> xxxxx xxxxxxxxxx</li> <li class="last"><strong>Email:</strong> <a href="#">contact@mydomain.com</a></li> </ul> </div> <div class="footbox"> <h2>Administration</h2> <ul> <li><a href="#">Disclaimer</a></li> <li><a href="#">Accessibility</a></li> <li><a href="#">Freedom of Information</a></li> <li><a href="#">Website Privacy</a></li> <li><a href="#">Press Release Information</a></li> <li><a href="#">Annual Report</a></li> <li><a href="#">Financial Statements</a></li> <li><a href="#">Job Vacancies</a></li> <li class="last"><a href="#">Semester Dates</a></li> </ul> </div> <div class="footbox"> <h2>Link Block 2</h2> <ul> <li><a href="#">Schools and Colleges</a></li> <li><a href="#">Student Activities</a></li> <li><a href="#">Student Affairs</a></li> <li><a href="#">Student Development</a></li> <li><a href="#">Student Financial Services</a></li> <li><a href="#">Student Group Directory</a></li> <li><a href="#">Student Life</a></li> <li><a href="#">International Students</a></li> <li class="last"><a href="#">Global Learning</a></li> </ul> </div> <div class="footbox last"> <h2>Link Block 3</h2> <ul> <li><a href="#">Academic Advisory</a></li> <li><a href="#">Academic Assistance</a></li> <li><a href="#">Academic Calendars</a></li> <li><a href="#">Academics Office</a></li> <li><a href="#">Administration</a></li> <li><a href="#">Adult Learners</a></li> <li><a href="#">Alumni Chapters</a></li> <li><a href="#">Alumni Events</a></li> <li class="last"><a href="#">Residential Colleges</a></li> </ul> </div> <!-- ####################################################################################################### --> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper"> <div id="copyright" class="clear"> <p class="fl_left">Copyright © 2013 - All Rights Reserved - <a href="#">Domain Name</a></p> <p class="fl_right">Template by <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a></p> </div> </div> </body> </html> i want to create a fresh one and please give me some tips on how to make the user logged in see pages that can't see when he logged out and i hope that u don't give me links for tutorials or files because i already try that and i didn't made nothing thanks in advance !
  6. Hey ,i've tried to change what u told me ,but still not working and it giving me no error <ul class="nostart"> <select name="select" class="textfields" id="Speciality"> <option id="0">-- Select Speciality --</option> <?php if(isset($_SESSION['email'])){ $getallSpeciality = mysql_query("select Nom_Specialite from specialite where enseignant.`Id_Enseignant`=affecte.`Id_Enseignant` and affecte.`Id_Groupe`=groupe.`Id_Groupe` and groupe.`Id_Specialite`=specialite.`Id_Specialite`")or die(mysql_error()); while($viewallSpeciality = mysql_fetch_array($getallSpeciality)){ ?> <option id="<?php echo $viewallSpeciality['Id_Specialite']; ?>"> <?php echo $viewallSpeciality['Nom_specialite'] ?></option> <?php }} ?> </select> </ul> and about the +mail+ it's for the java ,my friend have tried the query in java and it worked this the query that worked : select Nom_Specialite from specialite,enseignant,affecte,groupe where enseignant.mail_enseignant=''+mail+''' and enseignant.`Id_Enseignant`=affecte.`Id_Enseignant` and affecte.`Id_Groupe`=groupe.`Id_Groupe` and specialite.`Id_Specialite`=groupe.`Id_Specialite`; but it display nothing on the list and i watched a video tutorial showing me how to make a drop list with a query ,i can't learn PDO or mysqli because i don't have time too this work is for my final project on university ,i hope that u give me a answer i will be very grateful thanks !
  7. I am trying to make the query work in my php script ,that allow me to echo all speciality related to the user sing in,but it doesn't give me nothing this is my query : there's Table"affecte" tha has a link between Table"enseignat" and "groupe" and in Table "groupe" there's link to Table "speciality" this images of every table like you see in the script and every time I click on the list it don't give me nothing first of all I've tried this one: <ul class="nostart"> <select name="select" class="textfields" id="Speciality"> <option id="0">-- Select Speciality --</option> <?php $getallSpeciality = mysql_query("select Nom_Specialite from specialite where enseignant.Id_enseignant=''+mail+''' and enseignant.`Id_Enseignant`=affecte.`Id_Enseignant` and affecte.`Id_Groupe`=groupe.`Id_Groupe` and specialite.`Id_Specialite`=groupe.`Id_Specialite`;"); while($viewallSpeciality = mysql_fetch_array($getallSpeciality)){ ?> <option id="<?php echo $viewallSpeciality['Id_Specialite']; ?>"> <?php echo $viewallSpeciality['Nom_specialite'] ?></option> <?php } ?> </select> </ul> select Nom_Specialite from specialite,enseignant,affecte,groupe where enseignant.mail_enseignant=''+mail+''' and enseignant.`Id_Enseignant`=affecte.`Id_Enseignant` and affecte.`Id_Groupe`=groupe.`Id_Groupe` and specialite.`Id_Specialite`=groupe.`Id_Specialite`; UPDATE evaluation SET Td='11' WHERE Matricule='1' www2.0zz0.com/2014/04/28/01/167085039.jpg www2.0zz0.com/2014/04/28/01/793102561.jpg www2.0zz0.com/2014/04/28/01/324938650.jpg i want to displaye speciality that linked to enseignant ! ,and if tried SELECT * FROM specialite it giving all the speciality ,but what I am trying to do is to echo for every enseignant "user" his speciality ,my login.php is in a separate file and this code is from my note-on.php ,I will very grateful for any help thanks in advance !
  8. Yes , you are right and about the color that it didn't work this is the correct code : <?php if (isset($login_error) && ($login_error != "")){ echo "<p style='margin-right: 10px;color: #ff0000'>".$login_error."</p>"; }?>
  9. it's mysql_fetch_assoc() misspelling , how can i show this error in this code ,it's does not apear in my website : <?php if (isset($login_error) && ($login_error != "")){echo "<p color='#ff0000' style='margin-right: 10px;'".$login_error."</p>"; }?>
  10. Hey bsmither , i've add this code of line " echo mysql_error(); " in the script and it's says : that unknown email , so i changed it to : $sql = mysql_query("SELECT mail_enseignant,Nom_Enseignant,Mot_de_passe FROM enseignant WHERE mail_enseignant='".$email."' AND Mot_de_passe ='".$password."' LIMIT 1"); and password too , now i am getting : this error : Fatal error: Call to undefined function mysql_fetch_asooc() in C:\xampp\htdocs\University\login.php on line 17
  11. ok good i fixed the problem ,but still having this error see attached image : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\University\login.php on line 16
  12. Thanks a lot my friend for your reply ,but when i did that ,he given an error : Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\University\login.php on line 75
  13. hey guys , i am new in php programing and i am having a lot of trouble trying to create a login php script to connect it with my mysql database (i've already create a database) i am getting error : content of my database is : Id_Enseignant Nom_Enseignant Prenom_Enseignant mail_enseignant Mot_de_passe 14 hh hhs hhss and this is my php script : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\University\login.php on line 16 + line 16 is this line : if(mysql_num_rows($sql) == 1){ plus it showing me this next to the submit button :"; }?> -----------login.php---------------- <?php require_once('init.php'); include_once("scripts/connect.php"); $login_error = ""; $email = ""; $password= ""; if(isset($_GET['login'])){ $email = strip_tags(mysql_real_escape_string($_POST['email'])); $password = strip_tags(mysql_real_escape_string($_POST['password'])); $sql = mysql_query("SELECT mail_enseignant,Nom_Enseignant,Mot_de_passe FROM enseignant WHERE email='".$email."' AND password='".$password."' LIMIT 1"); if(mysql_num_rows($sql) == 1){ $row = mysql_fetch_asooc($sql); $_SESSION['mail_enseignant'] = $row['mail_enseignant']; $_SESSION['Nom_Enseignant'] = $row['Nom_Enseignant']; $_SESSION['Mot_de_passe'] = $row['Mot_de_passe']; header("Location: index.php"); exit(); }else{ $login_error="invalid Information..."; } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr"> <head profile="http://gmpg.org/xfn/11"> <title>Département Math-Info</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="stylesheet" href="styles/layout.css" type="text/css" /> </head> <body id="top"> <div class="wrapper row1"> <div id="header" class="clear"> <div class="fl_left"> <h1><a href="index.php">Département Math-Info</a></h1> <p>Just Pour Vous</p> </div> <form action="#" method="post" id="login"> <a href="login.php"><h4>Enseignant Login<h4></a> </form> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row2"> <div id="topnav"> <ul> <li><a href="index.php">Homepage</a></li> <li class="active"><a href="style-demo.php">Contact Us</a></li> <li><a href="nouveaute.php"> Nouveauté</a></li> <li><a href="note-off.php">NOTE TAB</a></li> <li class="last"><a href="gallery.php">Gallery</a></li> </ul> <div class="clear"></div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row4"> <div id="container" class="center"> <!-- ####################################################################################################### --> <h3>Ensiegnant Login Below</h3> <form action="?login" method="post" > <fieldset> <legend>Enseingant Login</legend> <p>Mail_Ens: <input type="text" name="email" value="<?php echo $email;?>" /></p> <p>Password: <input type="password" name="password" value="<?php echo $password;?>" /></p> <p> <?phpif (isset($login_error) && ($login_error != ""){ echo "<font color='#ff0000' style='margin-right: 10px;'".$login_error."</font>"; }?> <input type="submit" value="Login Enseignant" name="submit_login"/></p> <!-- <input type="image" src="images/sign_in.gif" id="signin" alt="Sign In" />--> </fieldset> </form> <!-- ####################################################################################################### --> <div class="clear"></div> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper row5"> <div id="footer" class="clear"> <!-- ####################################################################################################### --> <div class="foot_contact"> <h2>University Name Here</h2> <address> Address Line 1<br /> Address Line 2<br /> Town/City<br /> Postcode/Zip </address> <ul> <li><strong>Tel:</strong> xxxxx xxxxxxxxxx</li> <li><strong>Fax:</strong> xxxxx xxxxxxxxxx</li> <li class="last"><strong>Email:</strong> <a href="#">contact@mydomain.com</a></li> </ul> </div> <div class="footbox"> <h2>Administration</h2> <ul> <li><a href="#">Disclaimer</a></li> <li><a href="#">Accessibility</a></li> <li><a href="#">Freedom of Information</a></li> <li><a href="#">Website Privacy</a></li> <li><a href="#">Press Release Information</a></li> <li><a href="#">Annual Report</a></li> <li><a href="#">Financial Statements</a></li> <li><a href="#">Job Vacancies</a></li> <li class="last"><a href="#">Semester Dates</a></li> </ul> </div> <div class="footbox"> <h2>Link Block 2</h2> <ul> <li><a href="#">Schools and Colleges</a></li> <li><a href="#">Student Activities</a></li> <li><a href="#">Student Affairs</a></li> <li><a href="#">Student Development</a></li> <li><a href="#">Student Financial Services</a></li> <li><a href="#">Student Group Directory</a></li> <li><a href="#">Student Life</a></li> <li><a href="#">International Students</a></li> <li class="last"><a href="#">Global Learning</a></li> </ul> </div> <div class="footbox last"> <h2>Link Block 3</h2> <ul> <li><a href="#">Academic Advisory</a></li> <li><a href="#">Academic Assistance</a></li> <li><a href="#">Academic Calendars</a></li> <li><a href="#">Academics Office</a></li> <li><a href="#">Administration</a></li> <li><a href="#">Adult Learners</a></li> <li><a href="#">Alumni Chapters</a></li> <li><a href="#">Alumni Events</a></li> <li class="last"><a href="#">Residential Colleges</a></li> </ul> </div> <!-- ####################################################################################################### --> </div> </div> <!-- ####################################################################################################### --> <div class="wrapper"> <div id="copyright" class="clear"> <p class="fl_left">Copyright © 2013 - All Rights Reserved - <a href="#">Domain Name</a></p> <p class="fl_right">Template by <a href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a></p> </div> </div> </body> </html> -----------connect.php---------------- <?php $hostname = 'localhost'; // Your MySQL hostname. Usualy named as 'localhost', so you're NOT necessary to change this even this script has already online on the internet. $dbname = 'a_database'; // Your database name. $username = 'root'; // Your database username. $password = ''; // Your database password. If your database has no password, leave it empty. // Let's connect to host mysql_connect($hostname, $username, $password) or DIE('Connection to host is failed, perhaps the service is down!'); // Select the database mysql_select_db($dbname) or DIE('Database name is not available!'); ?> ------------init.php-------------- <?php session_start(); ?> check attached image to see how it's apper to me please ,any comment it will be very helpful for me thanks in advance !
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.