Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #36.9K
Ranked #4K
~1K People Reached
Favorite Tags
Member Avatar for james chaco

Hi, I have created the following code to get connection object to Database(MySql in my case) using a static method. I wanna know whether it is a good practice or not? Will there be any problem like concurrent access? Any information will be helpful. public static Connection connection(){ Connection conn …

Member Avatar for SRocks
0
235
Member Avatar for sha1023012

I am working on this code for php with HTML now i want a container around the information but it is not turning out. Can someone help me understand what I am doing wrong. Should my HTML code suppose to be at the top of the page or not. Here …

Member Avatar for sha1023012
0
144
Member Avatar for dhruv_arora

Here's my code and I am getting an error undefined variable, this code submits the information submitted by the user to a mysql database. [CODE]<?php include("header.html"); include("nav.html"); include("sidebars.html"); ?> <?php $errors=array(); if(isset($_POST['submitted'])){ if(empty($_POST['fname'])){ $errors[]="You forgot to enter first name"; } else{ $fn=$_POST['fname']; } if(empty($_POST['lname'])){ $errors[]="You forgot to enter last name"; …

Member Avatar for SRocks
0
209
Member Avatar for dineshsurve

<?php require_once('config.php'); $ID=$_SESSION['ID']; $UserID=$_SESSION['UserID']; $tbl_name = "tbl_users"; //To check Data Insersion $Curr_Password=$_POST['currentpassword']; //echo $Curr_Password; $new_Password=$_POST['npassword']; $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_DATABASE, $link) or die( "Unable to select database"); $query="UPDATE $tbl_name SET Password = '".$new_Password."' WHERE Password='".$Curr_Password."' and id=$ID and Status=1"; echo $query; $result=mysql_query($query,$link); if(mysql_num_rows($result) ==1) //line no 38. { echo …

Member Avatar for vibhaJ
0
265
Member Avatar for designalex

Hi, its me again.:scared: im using the following code to destroy my session but instead of removing the session, it just empties the data, for e.g: when i start the session a file is created, after storing my data in the session the file could be 2 or 3 kb …

Member Avatar for SRocks
0
205