murli800
Members-
Posts
30 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
murli800's Achievements
Member (2/5)
0
Reputation
-
thanx..and can you suggest the tutorial for zend framework beginner..??
-
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??
-
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
-
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>
-
i want to know about security side of php..how can i make my script securre..md5 or sha1 what to use
-
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..
-
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]
-
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]
-
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
-
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>
-
Why i am retrieving only 1 row from my data base
murli800 replied to murli800's topic in PHP Coding Help
Thanx..dudes...u guys are bond... -
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>
-
thanx