No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
this mail system is working in my local domain(S.K@ r.j.com).i want to send mail to S.K@ j.com. please help me to how to configure mail system . <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); $sql="INSERT INTO entryform (Name,Department, Problem, Ext_no, Ip_Add, … | |
i want to send 2 persons mailid in this mail <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); $sql="INSERT INTO entryform (Name,Department, Problem, Ext_no, Ip_Add, Remark, Email ,status) VALUES ('$_POST[Name]','$_POST[Department]','$_POST[Problem]','$_POST[Ext_no]','$_POST[Ip_Add]','$_POST[Remark]','$_POST[Email]','$_POST[status]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo ""; mysql_close($con); $to … | |
here is my code for edit user detail but selected id is not showing .only showing last inserted id. please help me for correct this code.. my view code <?php //connects to database $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); //select table … | |
how to create edit form .and update user data my table is; id int auto_increment Name Department Problem Ext_no Ip_Add Remark Email Status (set) My view table code is ;- <?php //connects to database $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); //select … | |
How to send user detail page to my email.with full deatils <?php mysql_connect("localhost","root",""); mysql_select_db("Users"); $mysql_query =("SELECT uid,`Name`,Department,Problem,Ext_no,Ip_Add,Remark,Email FROM entryform ORDER BY entryform.uid DESC limit 1 "); $result = mysql_query($mysql_query); while($data = mysql_fetch_row($result)){ echo(" <td > <tr> <td> Complaint NO. :- $data[0]</br></br></td> <td> NAME :- $data[1]</br></br> </td> <td> DEPARTMENT :- $data[2] … | |
<?php mysql_connect("localhost","root",""); mysql_select_db("Users"); $mysql_query =("SELECT uid,`Name`,Department,Problem,Ext_no,Ip_Add,Remark,Email FROM entryform ORDER BY entryform.uid DESC limit 1 "); $result = mysql_query($mysql_query); while($data = mysql_fetch_row($result)){ echo(" <td > <tr> <td> Complaint NO. :- $data[0]</br></br></td> <td> NAME :- $data[1]</br></br> </td> <td> DEPARTMENT :- $data[2] </br></br> </td> <td> PROBLEM :-$data[3] </br></br> </td> <td> EXT. NO.. : … | |
here is my code for message i want to show message with avatar .i'm unable to create it any one help me for displaying message with avatar my message system [CODE] <?php require "database.php"; $userfinal=$_SESSION['MM_Username']; // get the messages from the table. $get_messages = mysql_query("SELECT message_id FROM messages WHERE to_user='$userfinal' … | |
| |
how to view messages with profile image .anyone help me my profile view page [CODE] <?php require("connect.php"); $username=$_SESSION['MM_Username']; $query=mysql_query("SELECT *FROM members WHERE username='$username'"); if(mysql_num_rows($query)==0) die("User not found!!!!"); else { $row=mysql_fetch_assoc($query); $location=$row['avatar']; echo "<img src='$location' width='100' height='100'>"; } ?> [/CODE] My message page [CODE] <?php require "database.php"; $userfinal=$_SESSION['MM_Username']; // get the … | |
here is my code for read message but error display in my page Notice: Undefined index: message in C:\wamp\www\.....m\Mailbox\read_message.php on line 6 anyone help me for this problem.how to solve it. [CODE] CREATE TABLE `messages` ( `message_id` int(11) NOT NULL auto_increment, `from_user` varchar(65) character set latin1 collate latin1_general_ci NOT NULL, … | |
please correct this problem [CODE] id -- int user_id -- int friend_id -- int [/CODE] [CODE] <? session_start(); //starts session mysql_connect("localhost", "root", ""); mysql_select_db("admin"); if ($user_id= $_SESSION['logged']){ //check if user is logged in if($_GET['user_id']){ //gets userid $friend_id=$_GET['user_id']; //friend $by = $user_id; //me $query = "INSERT INTO friend_req ( 'friend_id , … | |
how to auto resize right iframe when i click my php page link .can it is possible to set auto resize my right iframe. [CODE] <table width="162" height="386" border="1" class="indextable"> <tr> <td><iframe src="mmmmaaaammmmaaa.php" width="180" height="445" frameborder="0" scrolling="no" hspace="0"></iframe> </td> </tr> </table> <table width="168" height="154" border="1" class="chat"> <tr> <td> </td> </tr> </table> … | |
how to create frames in php page .and autoresize iframes. | |
here is my code for image upload. after upload successfully i want to go my mainpage.php page . i am using iframe to display upload form. how to go mainpage. please anyone help me for this problem . [CODE] <?php include("connect.php"); $_SESSION['MM_Username'] ; $username=$_SESSION['MM_Username']; if(isset($_POST['submit'])) { //get file attributes $name=$_FILES['myfile']['name']; … | |
how to set avatar to my profile page .anyone help me for set my avatar image path in my profile page. [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])) { echo "Welcome ".$_SESSION['MM_Username']; echo "<img src=".mysql_result($userg,0,"avatar" )." width=200 height=200>"; } … | |
can it is possible when i upload my avatar successfully in upload.php page then auto refresh my mainpage.php after uploading. | |
please can you help me for define image size and width on this code [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])){ echo "Welcome ".$_SESSION['MM_Username']; echo "<img src="; echo mysql_result($userg,0,"avatar" ); echo "></img>"; } ?> [/CODE] | |
my code for show avatar but image not display . how to correct the code [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])){ echo "Welcome ".$_SESSION['MM_Username']; echo "<img src="; echo $userg; echo "></img>"; } ?> [/CODE] | |
upload profile image but upload only ram user pic .other user not able to upload there image .how to define every user has upload there prof. image . anyone help me for this problem [CODE] // Upload Form <?php include("connect.php"); $_SESSION['username']= 'ram'; $username=$_SESSION['username']; if(isset($_POST['submit'])) { //get file attributes $name=$_FILES['myfile']['name']; $tmp_name=$_FILES['myfile']['tmp_name']; … | |
i want to show friend request without pressing submit query button. please anyone help me .change the code without form Table structure for table `friend_requests`-- CREATE TABLE IF NOT EXISTS `friend_requests` ( `id` int(11) NOT NULL auto_increment, `sender` int(11) NOT NULL, `recipient` int(11) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT … | |
i want to show friend request without pressing submit query button. please anyone help me .change the code without form <?php session_start(); mysql_connect("localhost", "root", ""); mysql_select_db("aa"); //START OF LOGIN if(!isset($_SESSION["logged"])) { if(isset($_POST["username"])) { $query = mysql_query("SELECT id FROM members WHERE username = '" . $_POST["username"] . "'"); if(mysql_num_rows($query) > 0) … |