39,402 Topics
![]() | |
I have a php file, for example abc.php file whose output will be an image(profile pic) and below it a set of links(navigation links). When i click any of those links, it displays the output of destination file(output of file mentioned in "href" attribute of anchor tag). But i want … | |
Guys i`m trying to archive something like facebook,twitter wall Display. I have a friend table,inside it has id,friendid and userid. also got feeds table which contains id,action,sender_id,statusid,status,date. What i have succeeded to do is if You are logged in you can see all the updates from your friends...As the code … | |
Hello, I've been racking my brain all week with this code. I'm displaying a help desk table, and I want the column headers to be clickable, which will ultimately sort the that column both ascending and descending. I'm sure I'm just missing a step or so, but cannot seem to … | |
I recently wrote a code for a feedback form in Php, and I have the following problem: after submiting the form, what can i do to go back to the form page? | |
i need help [CODE][24-Dec-2010 02:08:42] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/usercp.php on line 412 [24-Dec-2010 02:08:42] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/usercp.php on line 437 [24-Dec-2010 02:08:42] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/phpgraphlib.php on line 886 [24-Dec-2010 02:08:42] PHP Warning: Invalid … | |
I wasw ondering if someone could help me out with attaching multiple files to an email using uploadify and contact form. So far I have the file locations and names put into an array [CODE]<input type="hidden" name="file_name[]" value="/uploads/'+response+'" />[/CODE] How would I attach these files to an email through php. … | |
load array from file into variables for login ? I have an external file with some userpreference called userprefs.txt which contains values on several lines (array values). In another page I have this code below(part of it), trying to get the `$realUser` and `$realPass` values to be parsed from `$userPrefs[0]` … | |
So here is my latest question team... The project I am working now the I needs to be modified.. Its a form with checkboxes on who you would like to send this message to... at first I thought it was fine just sending out with everyone on the "to:" list … | |
hi guys..is there a problem with my code? because, i am trying to add a row dynamically depending on the user requirements, what the code does is that, whenever the image is clicked, only the textbox appears, what should happen is that the textbox should be inside the row.. [CODE] … | |
Hi all... For more days, I am struggling with one damn concept.. I have created a sample mail sending code which supports to upload our resume and send it to some company person.. I have cleared many bugs and finally it works fine. But the problem is when i host … | |
I have an example below from the registrar and when implemented (in a loop) it takes between 500ms to 1s between checks. I need it to run as quickly as possible, whether it be through curl or without. It seems curl takes forever between checks. I only need the script … | |
Hello, anyone has an idea of how to use php to check to see if a field in a mysql table is empty or has no values? i tried this $query="SELECT fieldId FROM table WHERE fieldName IS NULL" ; but this works only if the field in the table has … | |
when i run a php file on my site....I get an error msg The server encountered an internal error or misconfiguration and was unable to complete your request. one page as example .....[url]http://www.lifeline400.com/corp/staff.php[/url] Any help mch appreciated!!!!!!!!!!!!!! | |
Is anyone help me to learn PHP? or give me some good links about PHP tutorials and examples? Thanks in advance. ![]() | |
[CODE]<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> <table cellpadding="0" cellspacing="0"> <tr> <td height="35" width="80">Username:</td> <td><input type="text" name="username"></td> </tr> <tr> <td height="35">Password:</td> <td><input type="password" id="pass" name="pass"></td> </tr> </table> <input type="submit" name="submit" value="Login"> <input name="submit" type="image" src="./images/button.png" style="width: 160px; height: 25px; margin-left: 35px; margin-bottom: -20px; margin-top: 20px;"><a href="" style="color: white; text-decoration: none; font-weight: bold; … | |
I am starting a word press website for downloading softwares. can any body suggest a good template ![]() | |
Ok so this being my first post i hope im doing it correctly i took this from another post and tried to modify it to what i was supposed to do as u can see basic knowledge here.. ahhaah so i dont even know where to start what i need … ![]() | |
I need help on dynamic forms with php. With a select action "Employees" checked, I want to show information of employees from a database in a text box. Thanks | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
hi guys, could you help me? how could i create a dropdown button automatically once a value is inputted in the textbox.. thanks thanks.. | |
Hi, Does anybody know of another way to display an image from mysql besides [CODE]header("Content-type: image/jpg");[/CODE] | |
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. | |
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 … | |
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 … | |
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']; … | |
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 … | |
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 … | |
Sorry this was posted in the wrong place, didn't see a web development section with PHP there. | |
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) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
<?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 … | |
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? | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
Hi team, Thanks for the view.. So here is my question... Here's what I am trying to do... I have a form that people fill in to send an email to selected people. They fill in the form and it now goes to a database to hold it until approved … | |
I want to do something very basic and have tried many ways without success. I have a simple database table consisting of four fields. All it is doing is showing affiliated clubs. One field is 'webaddress' which is the http address. I want to make "title' into a hyperlink so … |
The End.