39,320 Topics

Member Avatar for
Member Avatar for aslamdoctor

I am using buddypress plugin on my wordpress project to create a social networking site. I have created a User login module & also used a plugin called BP-FBConnect to allow users to log in as facebook users. So here there are 2 user categories 1. Site Users 2. Facebook …

0
53
Member Avatar for pakunoda

Hi! Good day to all.. . can somebody help me with my code because when it comes to browser it always say this thing. Notice: Undefined index: submit in C:\wamp\www\pm_login\register.php on line 3 Notice: Undefined index: fullname in C:\wamp\www\pm_login\register.php on line 5 Notice: Undefined index: username in C:\wamp\www\pm_login\register.php on line …

Member Avatar for pritaeas
0
223
Member Avatar for AdriftUniform

Hi there. I am creating a social networking website and I am having an issue when posting messages on a users profile. The message posts correctly and displays correctly too but when I refresh the page a duplicate of the last message is submitted. I do not want to prevent …

Member Avatar for itisnot_me
0
6K
Member Avatar for Snowbell

Hello, I'm trying to customize thesis theme of wordpress. I've done most of the things by using custom_functions.php, but the comment box is still under my home page. I've tried removing several functions, but none seem to work.here's a screenshot of my problem : [url]http://tinypic.com?ref=wmayj9[/url] right now, I'm using wordpress …

Member Avatar for Snowbell
0
144
Member Avatar for surendrastha
Member Avatar for pakunoda

can you please help me guys.. i just wanted to start practicing phpandmysql and my only problem is the apache,php, and mysql 1. i tried to install the apache 2.2.17 to my computer and the installation was successful. i tried to browse the localhost to my web browser and it …

Member Avatar for pakunoda
0
255
Member Avatar for xuexue

hi guys, could you help me? how could i create a dropdown button automatically once a value is inputted in the textbox.. thanks thanks..

Member Avatar for Shanti C
0
100
Member Avatar for phpDave

Hi, Does anybody know of another way to display an image from mysql besides [CODE]header("Content-type: image/jpg");[/CODE]

Member Avatar for Shanti C
0
29
Member Avatar for muralibobby2015

hello... i am not getting image url in I.E when ever drag the image into textbox. it is working fine in all browsers. but not in I.E. drag the image into textbox. url not getting in textbox. how to get this url when drag the image thanks.

Member Avatar for muralibobby2015
0
101
Member Avatar for arsala khan
Member Avatar for benjaminFowl87

Hi there, I have a slight problem with an email script that I have written, i'm using the mail() function. It sends an email a [email]ben@gmail.com[/email] (doesn't exist) I have hosted a website online and created a send us a quick message script that works from the site, this script …

Member Avatar for Dr Lopes
0
66
Member Avatar for leprakhauns

I have been working on a PHP site and it is really slow. It takes over 9 seconds to load and moving servers it is still just as slow. I have taken over programming it from a company who coded it in the Zend Framework using Doctorine and PHPTal. Killing …

Member Avatar for mschroeder
0
179
Member Avatar for rsmbd

I face the problem:: To Insert data to update data When I go www.myweb.com/cpanel user:xxxxx Pass:xxxx Go Database PhP MyAdmin by this way I can update my database.. But when I connect by PHP... I failed... Pls suggest some one.......pls !!1 1) test.php.. of a row <a href="update.php?id=<? echo $rows['id']; …

Member Avatar for hielo
0
122
Member Avatar for tcollins412

i am making a login page for my website. here is the code: [CODE]<?php include='dbconnect.php'; $tbl_name="members"; $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = mysql_real_escape_string($mypassword); $sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ session_register("myusername"); session_register("mypassword"); header("location:memberpage.php"); } else { echo "Wrong Username …

Member Avatar for hielo
0
100
Member Avatar for changeco

I have the following code and need to not display decimals... I'm unsure where to add a round() function... [code]<?php $nmdwiid = $row_eLearningSuite['nmdwiid']; $sql = "SELECT COUNT(*) AS total FROM eLearningSuiteProduct"; $query = mysql_query($sql); $recordset = mysql_fetch_assoc($query); $count = $recordset["total"]; echo $nmdwiid/$count * 100; ?> [/code] Any help would be …

Member Avatar for changeco
0
111
Member Avatar for leprakhauns

Sorry this was posted in the wrong place, didn't see a web development section with PHP there.

0
83
Member Avatar for vedro-compota

Good day) Advice please - is it permissible to use this syntax - [CODE] insert into EXAM_MARKS ( EXAM_DATE) values (str_to_date('26-05-2000', '%d,%m,%y')); [/CODE] This line does not work. I can not understand on what went wrong. Thank you for your answers)

Member Avatar for asaenz
0
1K
Member Avatar for imti321

newbee i get the following error in the below mentioned code: Parse error: parse error in C:\wamp\www\webdesigning1\webdesigning1\loginsession\login.php on line 25 [code] <?php $username = $_post ['username']; $password = $_post ['password']; if ($username&&$password) { $connect = mysql_connect {"localhost","root","webdesigning1") or die ("couldnt connect to mysql data base "); mysql_select_db("phplogin") or die("couldnt find …

Member Avatar for Sanket_s
0
157
Member Avatar for Drako12

i have a php variable that holds a date and i want to pass to a javascript function, but what happens is that i get a junk value instead, what should i do? [code] $data = $_POST['datep']; echo "<script language=javascript>fnClickAddRow($nplaca,$defeito,$posicao,$data);/script>"; [/code] [code]<script type="text/javascript"> function fnClickAddRow(n__placa,defeito2,posicao2,dataf) { var lext = "<?php …

Member Avatar for Airshow
0
177
Member Avatar for Drako12

i have a php variable that holds a date and i want to pass to a javascript function, but what happens is that i get a junk value instead, what should i do? [code] $data = $_POST['datep']; echo "<script language=javascript>fnClickAddRow($nplaca,$defeito,$posicao,$data);/script>"; [/code] [code]<script type="text/javascript"> function fnClickAddRow(n__placa,defeito2,posicao2,dataf) { var lext = "<?php …

Member Avatar for Drako12
0
171
Member Avatar for cristi08

Hello I have a form for a shoping cart that input even the value 0. How can i program php to not insert into table the products [CODE]$row['Denumire_produs'][/CODE] where the quantyti=$cantitate is 0 Here is the form input[CODE]$query="select*from produse"; ?> <form action="cumpar.php" method="post"> <td><input type="text" name="cantitate[]" value=" " size="1"/></td></tr> <input …

Member Avatar for cristi08
0
171
Member Avatar for Resentful

I'm currently almost done with a new site of mine, but one MySQL insert query is giving me trouble. The error message I am receiving is : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to …

Member Avatar for Resentful
0
92
Member Avatar for ankit.pandey3

<?php require_once('upper.php'); require_once('LoginStatement.php'); require_once('database.php'); echo $error_msg=''; require_once('database.php'); $LoginId=$_COOKIE['LoginIdCookie']; $query="select * from registration where LoginId='$LoginId'"; $result=mysqli_query($dbc,$query); $row=mysqli_fetch_array($result); if(isset($_POST['submit'])) { $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Name=mysqli_real_escape_string($dbc,trim($_POST['Name'])); $Age=mysqli_real_escape_string($dbc,trim($_POST['Age'])); $BloodGroup=mysqli_real_escape_string($dbc,trim($_POST['BloodGroup'])); if(!isset($_POST['Sex'])) { echo 'Please enter Sex<br>'; } else{ $Sex= mysqli_real_escape_string($dbc,trim($_POST['Sex'])); } $Qualification=mysqli_real_escape_string($dbc,trim($_POST['Qualification'])); $ContactNumber=mysqli_real_escape_string($dbc,trim($_POST['ContactNumber'])); $Email=mysqli_real_escape_string($dbc,trim($_POST['Email'])); $Address=mysqli_real_escape_string($dbc,trim($_POST['Address'])); $AboutYourself=mysqli_real_escape_string($dbc,trim($_POST['AboutYourself'])); //$countCheck=count($_POST['checkbox']); //echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Name)){echo 'Please …

Member Avatar for ankit.pandey3
0
2K
Member Avatar for Techguruwanabe

I need a login that requires user to validate email so that password is sent to email, but my computer crashed and I lost it can anyone help?

Member Avatar for dos_killer
0
93
Member Avatar for Resentful

Hello, Daniweb members. I've been watching your community forever, and I finally decided to join it. I am currently designing a bot that can talk to users intelligently. The only issue I am having right now is creating a chat log for my members. I need to be able to …

Member Avatar for diafol
0
105
Member Avatar for tcollins412

i am learning php and i am trying to insert data into a database from a form using php. here is the php [CODE]<?php include "connecttodb.php"; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['pass']; $query = "INSERT INTO ******* SET username='$name', password='$password', email='$email'"; mysql_query($query) or die('There was an error …

Member Avatar for hielo
0
126
Member Avatar for fernando1

Hi, I have this website where there will be chat rooms. I would like to have a form(php script) of rules of conduct before people gets access to the chat rooms. The options: Yes to continue to the chat rooms, No to send them back to the Home page. Thanks …

Member Avatar for fernando1
0
3K
Member Avatar for learning_php

Hi While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways : 1. Setting up garpage collection directive in php.ini file and 2. Create a session variable named, say, EXPIRE that holds the value [code]$_SESSION['EXPIRES']=time()+360;[/code] at the beginning of …

Member Avatar for learning_php
0
189
Member Avatar for crazycat503

Hi, I am developing a website for a local group and want to include photo album. My idea is that users could create albums and if they belong to the same group, they can upload photos to the album. But I want to make it quite efficient and quick loading. …

Member Avatar for dos_killer
0
333
Member Avatar for Lolalola

Hi, i have class "User_registration" and in this class i need use many class: "Location", "Links", "Mail", "Module". i create include all class in file: include 'class/location.php'; include 'class/links.php'; include 'class/mail.php'; include 'class/modules.php'; Now create "User_registration" class. [CODE]<?php class User_registration{ public function insert_to_db($name, $country_code, $home_page) { //work with data return …

Member Avatar for mschroeder
0
148

The End.