Jump to content

murli800

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Everything posted by murli800

  1. thanx..and can you suggest the tutorial for zend framework beginner..??
  2. i learned php 5.3 ... i know the concepts of advanced php..but have not done any big project on php..but have good understanding of concepts..i started learning zend framework..and finding it interesting..so is this necessary to develop a project on core php before switching to zend framework??
  3. hi all great coders..need some suggestion..i dont have any work experience in php 5.3..but i know the advanced php concepts..i am wondering.. is core php development experience is must before switching to application development by zend frameworks? your replies would be appreciated...thanx in advance
  4. hi all..i am new to zend..i want to know how to render dynamic content in my layout.phtml,, this is my layout.phtml <body class="claro"> <div dojoType="dijit.layout.BorderContainer" style="width:99%; height:99%; margin:auto;"> <div dojoType="dijit.layout.ContentPane" style="height:15%;" splitter="true" region="top"> where to put file so that i can render that here </div> <div dojoType="dijit.layout.ContentPane" style="width:20%;" splitter="true" region="leading"> where to put file so that i can render that here </div> <div dojoType="dijit.layout.ContentPane" splitter="true" region="center"> <?php echo $this->layout()->content;?> </div> <div dojoType="dijit.layout.ContentPane" style="width:20%;" splitter="true" region="right"> where to put file so that i can render that here </div> <div dojoType="dijit.layout.ContentPane" style="height:5%;" splitter="true" region="bottom"> where to put file so that i can render that here </div> </div>
  5. i want to know about security side of php..how can i make my script securre..md5 or sha1 what to use
  6. Hi all great coders...i also want to one of you...i need your guidance..i know the concepts of OOPS ..now i want to brush them by doing good OOPS practice examples..please guide me how to enhance the skill in OOPS..any links..pdf..video..which you think would be helpful to me ..kindly provide..Thanx in advance..
  7. hi all great coders..i have a problem..i want to change the color of status whenever it is clicked..for elaborating my problem more clearly i am attaching the screenshot of the problem...only color of first row status is changing..even if i am clicking the image of second row the color of first row image changes...i attached both the pics..and the php code...thanx in advance... [attachment deleted by admin]
  8. I want to change enable button change as it is clicked..how to do it ..suggest me the way....attaching the code and picutre of output [attachment deleted by admin]
  9. Hi all great coders..i also want to be one of you..i just learned the concepts of php classes..and i want to practice on class level php..can u people guide me ..how to move forward and where to forward so that i can learn class level php..it will be appreciated if you provide me video links..or any link which will be helpful to me..thanx in advance
  10. what should i do to restrict data insertion only when i add by form..now whenever i am refreshing data automatically got inserted in the database...check the if statement which i bolded -------------------------------------------------------- <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ include("include/sessionStart.php"); include("include/dbConnect.php"); $query = "SELECT * FROM schoolmaster"; $result = mysql_query($query); $arr = mysql_fetch_assoc($result); //while($dep = mysql_fetch_array($result1,MYSQLI_ASSOC)){ //print_r($dep); //} if(!empty($_GET['submit']) and $_GET['submit']=="Add" ) { $depName = $_GET['txtDepName']; $status = $_GET['radioStatus']; echo $yes =mysql_query("INSERT INTO department(departmentName,status) VALUES( '$depName','$status' )"); } ?>\<html> <head><style> #header{ width: inherit; height:110px; background-color:#09C; margin:auto; border-bottom:2px solid #000; position:relative; border-left:2px solid #000; border-right:2px solid #000; float:left; } h1{ position:absolute; left:205px; top:0px; margin-top:0px; } h2{ position:absolute; left:205px; top:38px; margin-top:0px; } h3{ position:absolute; left:205px; top:68px; margin-top:0px; } #container1{ width:800px; margin:auto; } label{ width:190px; font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; font-weight:bold; font-size:19px; float:left; margin:4px; } table{ position:absolute; border:none; top:0px; } td{ font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; font-weight:bold; width:138px; } </style> <script type="text/javascript" language="javascript"> function checkFill(){ var name = document.formAddDep.txtDepName.value if(name == "") { alert("Please fill department field"); document.formAddDep.txtDepName.focus(); return false; } if(!document.formAddDep.radioStatus[0].checked && !document.formAddDep.radioStatus[1].checked) { alert("Please choose the status"); return false; } } </script> </head> <body> <div id="container1"> <div id="header"> <img src="<?php echo $arr['schoolLogo']; ?>" width="200px" height="110px" /> <h1><?php echo $arr['schoolName']; ?></h1> <h2><?php echo $arr['schoolAddress']; ?></h2> <h3><?php echo $arr['schoolContact']; ?></h3> </div> <div style="margin-left:20px;"> <?php include("dropDown.php");?> </div> <div style="width: 620px; height:400px; position:relative; float: right; background-color: #FFDFFF;text-align:center;"> <form name="formAddDep" action="#" method="get"> <fieldset style="width:200px; float:right; border:2px solid #000; "> <legend>Update</legend> <label>New Department</label><input style="width:180px;" type="text" name="txtDepName" value="" tabindex="1"> <input type="hidden" name="hide" value="ok" /> <label>Status</label><br/> E<input type="radio" name="radioStatus" value="e" /> D<input type="radio" name="radioStatus" value="d" /><br/> <input type="submit" name="submit" value="Add" onClick="return checkFill()"> </fieldset> </form> <table > <tr> <td>Department Id</td> <td>Department Name</td> <td>Status</td> </tr> <?php $query2 = "SELECT * FROM department ORDER BY deptId ASC"; $result2 = mysql_query($query2);while($dep = mysql_fetch_assoc($result2)){echo "<tr/>";foreach($dep as $value) {?> <td><?php echo $value;?></td> <?php }echo "</tr>";}?> </table> <?php // if(!empty($yes)){echo "<h4>department Added</h4>"; /// echo "<a href=\"changeDisplay.php\">BACK</a>"; // } ?> </div> </div> </body> </html>
  11. <table > <tr> <td>Department Id</td> <td>Department Name</td> <td>Status</td> </tr> <tr> <?php while($dep = mysql_fetch_assoc(mysql_query("SELECT * FROM department"))){foreach($dep as $value) {?> <td><?php echo $value;?></td> <?php }}?> </tr> </table>
  12. in my $dep array..y is this only 1 row retrieving..infact i have more than 8 rows in the deparment dabase..help me..thanx in advane... -------------------------------------- <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ include("include/sessionStart.php"); include("include/dbConnect.php"); $query = "SELECT * FROM schoolmaster"; $result = mysql_query($query); $arr = mysql_fetch_assoc($result); $query1 = "SELECT * FROM department"; $result1 = mysql_query($query1); $dep = mysql_fetch_assoc($result1); print_r($dep); if(!empty($_GET['submit']) and $_GET['submit']=="Add" ) { $depName = $_GET['txtDepName']; $yes =mysql_query("INSERT INTO department(departmentName) VALUES( '$depName' )"); } ?>\<html> <head><style> #header{ width: inherit; height:110px; background-color:#09C; margin:auto; border-bottom:2px solid #000; position:relative; border-left:2px solid #000; border-right:2px solid #000; float:left; } h1{ position:absolute; left:205px; top:0px; margin-top:0px; } h2{ position:absolute; left:205px; top:38px; margin-top:0px; } h3{ position:absolute; left:205px; top:68px; margin-top:0px; } #container1{ width:800px; margin:auto; } label{ width:190px; font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; font-weight:bold; font-size:19px; float:left; margin:4px; } table{ position:absolute; border:none; top:0px; } td{ font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; font-weight:bold; width:138px; } </style></head> <body> <div id="container1"> <div id="header"> <img src="<?php echo $arr['schoolLogo']; ?>" width="200px" height="110px" /> <h1><?php echo $arr['schoolName']; ?></h1> <h2><?php echo $arr['schoolAddress']; ?></h2> <h3><?php echo $arr['schoolContact']; ?></h3> </div> <div style="margin-left:20px;"> <?php include("dropDown.php");?> </div> <div style="width: 620px; height:400px; position:relative; float: right; background-color: #FFDFFF;text-align:center;"> <form name="formAddDep" action="#" method="get"> <fieldset style="width:200px; float:right; border:2px solid #000; "> <legend>Update</legend> <label>New Department</label><input style="width:180px;" type="text" name="txtDepName" value="" tabindex="1"> <label>Status</label><br/> E<input type="radio" name="radioStatus" value="e" /> D<input type="radio" name="radioStatus" value="d" /><br/> <input type="submit" name="submit" value="Add"> </fieldset> </form> <table > <tr> <td>Department Id</td> <td>Department Name</td> <td>Status</td> </tr> <tr> <?php foreach($dep as $value) {?> <td><?php echo $value;?></td> <?php }?> </tr> </table> <?php // if(!empty($yes)){echo "<h4>department Added</h4>"; /// echo "<a href=\"changeDisplay.php\">BACK</a>"; // } ?> </div> </div> </body> </html>
  13. Hello World, I am learning php (or trying to), I have a little experience programming, and understand the basic concepts like logic, flow control, etc.. I was wondering if anyone had any ideas for some beginner projects/execises for php or even php/mysql. I just want some hands on practice, not any huge project by myself but just some exercises for beginners. I would also be interested in some apprenticeship on some existing projects (open-source only). I will do the equivalent of "grunt" work in programming (php), if someone is willing to show me how to do what I don't already know (which isn't much, but is increasing every day). If anyone know any good links to some practice exercises in php, please post them also. Thanks in advance to all who reply with solutions!
  14. i created some part of yahoo page in just tr td format and i want to design it in css...help me to design in..i did some css..i have difficuly in placing the NAME in the 3rd row ..how to place..input fields are easy to place ..but i want to make a definite class to all the labels like "SEX,COUNTRY,...."..so help me to do this..i am attaching my HTML code..thanx in advance .. [attachment deleted by admin]
  15. actually i want to make a code .. AIM IS THAT TEACHER FIRST LOG IN AND THEN MARK THE ATTENDANCE step 1)TEACHER FIST LOGIN .......2)TEACHER THEN CHOOSE ONE OF TWO BUTTON IN WHICH ONE IS OF ENTRY AND OTHER FOR EXIT...3)I ALSO WANT TO USE SESSION..IN THE MAIN.PHP i want to input username and password..and then redirect the page to attendance.php...also want to include session ...HELp me [attachment deleted by admin]
  16. i want to pass the information getting from the form and after storing in to the variables to a new php file ..how to pass all the value getting from the form [attachment deleted by admin]
  17. hi...look ur line "<form action='register.php' method='POST'>".......in this u notice action=register.php dis means that all the data inserted by the user and then contaned in the variables is forwarded to register.php and you are trying to receive on the same page...if you want to eliminate these error..u just cut section mentioned below from the code and paste it at the begging of register.php // Form Data $submit = $_POST['submit']; $useremail = $_POST['useremail']; $username = $_POST['username']; $userpassword = $_POST['userpassword']; $userpasswordcheck = $_POST['userpasswordcheck'];
  18. hi i want to include session so that attendance.php can't be acess directly.. [attachment deleted by admin]
  19. i am trying to create a code in which person has to login and then had to register his/her entry and exit timings...but my problem is that when i click $username is not accessible in if condition it gives.... Notice: Undefined index: username in C:\wamp\www\myproject\public\newatt\attendance.php on line 8 Notice: Undefined index: pwd in C:\wamp\www\myproject\public\newatt\attendance.php on line 9 Hi i am in andar30/04/2011 05:49 i am accepting username by post and feeding it to variable in $username..help me [attachment deleted by admin]
  20. hi..i am creating an app for a school...registration is happening but deletion and updation is not [attachment deleted by admin]
  21. these are the codes i have written to update delete and insert data in database [attachment deleted by admin]
  22. first of all make field in ur database whose name would be log_number..bcz u mentioned u have only 2 fields..and no need to use log_number in your program instead in query..log_number just provide a identification that which row to update..if you want the full code then i can provide that just reply to this post
×
×
  • 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.