52,566 Archived Topics
Remove Filter ![]() | |
hi, can you help me how to update record in database? here's my code, i don't know whats wrong in my code. nothing happened every time, I want to update my records. [CODE]<?php mysql_query ("UPDATE from registration SET firstname ='$firstname_x', lastname ='$lastname_x', MI ='$MI_x', address ='$address_x', gender ='$gender_x', age ='$age_x', … Web Development php | |
hi people. i am building a simple social network for my CAS (i am doing IB diploma) and when i came to the home page where i all the friends statuses are viewd i got a problem here is my home page's code: [CODE] <?php if(!isset($_COOKIE['ln'])) { header("location : index.php"); … Web Development mysql php social-media | |
I want to design a login form using Asp.net login controls. Please guide me as to how should I implement it. Thanks in advance. Web Development asp.net | |
hi i'm new to php, i already have a database called msansi its table called provinces i've already created a drop down list of all my nine provinces now what i want to do is, i want the cities associated with the provinces to display on the same page as … Web Development php php-codeigniter | |
I'm stuck on this project and not sure what's going wrong. I need to return the temp conversion of a users input on click. Any help would be appreciated. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Temperature Converter</title> <script type = "text/javascript"> <!-- … Web Development javascript xml | |
Hello I am trying to write a form that checks user mail address by existence of "@" character. I wrote these codes below but when I enter information at the html file I get this warning: Notice: Use of undefined constant mail - assumed 'mail' in C:\xampp\test\send_simpleform.php on line 2 … | |
hello, iam very new in jQuery. Need help asap please. on my asp.net page I want to use two jQuery functions. 1. Clears textBox when user clicks on it. 2. Clears all inputs when user clicks on btnCancel button. I made two functions [CODE] //clears value from onclicked input $(document).ready(function … Web Development asp.net javascript javascript-jquery | |
my problem is when i compose an email in html i get mail@127.0.0.1 as a sender. if i take off the HTML format then everything is ok. Here is the headers: [CODE]$headers = " From: mywebsite.ca" . "\n" . "Replay-To: Do Not Replay". "\n" . "X-Mailer: PHP/" . phpversion(); $headers … | |
hello guys... I am trying to play a wave file in a small asp.net project. Now I want to embed HTML in asp.net so that I can use [B]<object>[/B] tag of HTML to play the wave file. Following is the code to get row index from gridview, from the row … | |
I need some help. I want to make a secure loginsystem and here is my script for the system that checks how many times you tried to login ($try). db.php is the script for connecting with my database. The system isn't in connecton with the loginsystem it is only the … | |
i am using the following code to submit a form: [CODE] <script> function marktaskcomplete(){ document.forms["markcomplete"].submit(); } </script> <? if ($_POST['markcompletevalue']=='yes'){ include "dbconnect.php"; $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } mysql_close; } ?> [/CODE] and when i try to submit more … Web Development javascript php sql | |
I want to pass the checkbox values from my form to another PHP file upon clicking the next hyperlink. But I am unable to do so. I have javascript in my form which checks that only one checkbox is selected. To use this javascript, I need to name all my … | |
Hi Folks I am working on a forum for a customer and I am having problems passing a url variable; This the code i have on a search page <cfelseif cgi.http_referer contains 'forumViewMessages'><cfset linktext = 'Forum Postings/Replies Page'><cfset lastpage = 'forumViewMessages.cfm?#linkVariables#'> </cfif> <cfoutput>#lastpage#</cfoutput> <cfabort> the output on the page when … Web Development coldfusion | |
Hi there, I have added a validation script to this page [url]http://antobbo.webspace.virginmedia.com/webediting/documents.htm[/url] but it is not working the way I want it to, I am sure I made some silly mistake. Basically I want to make sure that people actually input something in the form below before submitting it. If … Web Development javascript | |
Hello there, This is just a quick question. You know that servlets respond by printing out dynamic HTML code? Well, is it possible that instead of doing that, the servlet just redirects back to the HTML form that send the servlet the Form data in the first place? myHtml(sends form … | |
I have a list of say 15 images. How can I make it so that in each page refresh they all change to a random position? Thanks Web Development php | |
I have created a checkbox using while loop and posting this to another page but I am not sure on how to add these ticked check box as 1 and non ticked one as 0 to the database. Can someone help me? <form action="Test_Completed.php" method="post"> include '../Database/take_an_exam.php'; $intNumber = 1; … Web Development first-post php | |
Hi, I am working on a Inventory management system. No I would like to have a [B]custom bill no, which will be changed on each month[/B], i.e. the first bill of March, 2011 will have a no like "[B]Mar/2011/01[/B]", the next will be "[B]Mar/2011/02[/B]" and so on, until it is … Web Development php | |
Ok i have a problem i cant solve I have 2 images image one saved in location x and has name x1 image two is saved in location y and has name y1 Now i want a script that picks up image y1 and replaces x1 with y1 using changeing … | |
How can I get some part of $B to be only [B]auto[/B](The first word in $A[1])? [CODE] if(preg_match('/^(.*)">(.*)/',$A[1],$B) == 1) { die($B[1]); } [/CODE] $A[1] is.... [B]auto[/B]">auto</a>, <a href="automobile">automobile</a>, <a href="motorcar">motorcar</a>, <a href="machine">machine</a></div><div class=Rel><a hr .................................... /tr><tr><td><a href="zw | |
hi.. I just want to know is there any way to use flash image in java i mean i f i have java servlet web form and i want to design this form on flash image then how can be it possile please help... Web Development flash java java-jsp web-design | |
Hi, I'm creating the layout for a dynamic webshop, all pictures are getting dynamic IDs to have their elements changed. I'm currently having errors with the code below and have no idea why. the argument id is not null, however document.getElementById(id) is. I don't understand how that can happen :S … Web Development javascript | |
[CODE] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="managesurveys.aspx.cs" Inherits="managesurveys" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <script type="text/javascript"> function newAttribute() { var d = document; // get field labels var lbl_attribute_new = document.getElementById('js_lbl_attribute_new').value; var lbl_attribute_del = document.getElementById('js_lbl_attribute_delete').value; var lbl_property_new = document.getElementById('js_lbl_property_new').value; var lbl_property = document.getElementById('js_lbl_property').value; … | |
Hi, I am working on a php form where, I have 5 [B]rate[/B] , 5 [B]quantity[/B] & 5 [B]amount[/B] fields. The user will make entry on amount & quantity fields, and onchange the amount fields will be calculated, I also have a TOTAL field which will also be calculated from … Web Development javascript | |
Hi all. I have script that use two arrays. It pushes original array values to the newly created array. it dont pushes into new array duplicate values. for Ex; the orginal array is [B]var arr=['one','two','three','three'][/B]new array will be var newArr=['one','two','three'] the second three will not copied. but one disadvantage is … Web Development javascript | |
Hi, I am working on a PHP page where I have 5 rate, 5 qty and 5 amount fields. When I am define all the fields manually, i.e. defining each field with a separate filed name, field id then it is working. But when I have used a loop to … Web Development php | |
Dear All I have 2 Pages smtpAuth.php contents.php When I use this code [CODE]$body = file_get_contents('contents.php'); $body = eregi_replace("[\]",'',$body);[/CODE] It cannot show PHP variables values in Send email. Content.php file attached as contentsphpfile Whole HTML working fine but PHP DataBase values are not showing in Email. | |
hi guys, this is the scenario, i have two textboxes, then a submit button. now, when the user clicks the submit button, it will verify if both textboxes have values, otherwise, if only one of them is empty, an alert box will be displayed prompting the user to complete the … Web Development php | |
hi, i need help from you ^^ i don't now how to add java script into this programmed. the result should be come out with "you are interested in: (either one or all check box they click)". i hope you guys can help me on this. Thank you ^^ [CODE]<html> … Web Development html-css javascript | |
Hi, I've been using iTextSharp PDF library for a while, but now want to do something tricky. At least it seems tricky. I simply want to change the dimensions of a page in a PDF document I'm busy creating.. but change it *after* I've added content to it. In other … | |
Hi all, Sorry if I post same thread. I cannot find any similar post to handle my problem. I manage to show/hide tables(which I put on DIV tag) by using 2 radio button which is Kes and Lot. But I'm having problem by starting click on either Kes and Lot.The … Web Development javascript | |
Hello friends, I try to rewrite links with htaccess, but the server does not change the links. I want, e.g.. the link [url]www.example.com/index.php?option=com_content&view=section&id=7&Itemid=54[/url] To be: [url]www.example.com/cat/7/Item_54[/url] (Or something similar). My .htaccess file is: [CODE] ## # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $ # @package Joomla # @copyright Copyright … Web Development open-source pdf php xml | |
Hi there, today I have written my first PHP script (and it even works, how cool!) and I have few questions. Here's the script [CODE]<?php $to = "myemail@myemail.com"; $subject = "Comments on page"; $message = $_POST["comments"]; mail($to,$subject,$message); echo "Thank you for sending your feedback. That will help me improve the … | |
Hi I am working on a contact us form. I got the form working correctly, but when it validates it puts the error on a new page. How can I have the error message show on the form page? HTML Code: [code]<form action="contact.php" method="post" id="contactform"> <ol> <li> <label for="name">Full Name … Web Development php ![]() | |
Hi, i am making a search engine in php and i just get a warning that i cant understand: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/eoopoedt/public_html/sok/search.php on line 27 See it your self: [url]http://eoop.org/sok/[/url] My code: [CODE]<?php $button = $_GET['submit']; $search = $_GET['search']; if … | |
hi!!! i have got a small problem wid an sql query that i m writting in jsp the query is real simple... but i dont know y m not gettin it... [CODE] q="select '" +col+ "' from '" +ta+ "'"; Class.forName(sq.getName()); cn=DriverManager.getConnection(sq.getConnstr(),sq.getUser(),sq.getPwd()); st=cn.prepareStatement(q); out.println("before query1"); rst=st.executeQuery(); [/CODE] [CODE] q="select ? … | |
Hi all :) I basically want to use the .append() data to append the data that I got to the selected div. this is variable that i've declared [CODE] var li_template = '<div style="display:none" class="load_reply"><div class="reply_img"><img src="status/blankSilhouette.png" /></div><div class="reply_text"><a href="#" class="blue">Test Name</a><p class="tex">%s</p><div class="date">%r · <a href="#" class="light_blue">Like</a> · <a … Web Development javascript | |
Hi every one! :) Based on the example of StyledTextCtrl of the wxPython demo i managed to write a small application intended to Php code writing. Does anyone know how to set styles for Php codes? I found it's necessary to use SetLexer(stc.STC_LEX_HTML) because STC_LEX_PHP is deprecated. But i have … | |
My array $pids contains integers. For example: 18742 59274 94255 97124 18742 94255 94255 I wrote: [CODE]$pid = array_unique($pids); for($i=0; $i<count($pid); $i++) echo $i.' '.$pid[$i].'<br />';[/CODE] And the output is: 0 18742 1 2 3 What's wrong? Why array_unique() doesn't throw away duplicated values? Web Development php | |
Hey. i'm uploading a file to my server via php and the file name is en email (x@x.com) and after the upload the files saves as x_x.com anyone knows why? is it something in the php.ini or maybe its a code thing? Thanks in advance. Web Development php | |
Howdy, I have a basic html file containing certain data I need to extract. This is the code for just one of the tables on the page: [CODE]<TABLE title="Left Magazine"class="dataTable" align="center" cellspacing="0" cellpadding="0"> <caption>Media Details</caption><THEAD><TR class="captionRow"><TH>Slot #</TH><TH>Attn</TH><TH>Status</TH><TH>In Drive</TH><TH>Label</TH><TH>Media Loads</TH><TH>Comment</TH></TR></THEAD> <TBODY> <TR class="altRowColor" > <TD>1 </TD> <TD> </TD><TD>Full, Gen. 3 </TD> <TD> </TD> … | |
I'm trying to create a back end for a food truck whose menu constantly changes. I want to make a form that can update text on another page. I'm new to PHP. I think I need a way for the form to update html. So far I have the form … Web Development php | |
Hi I'm trying to design something from the ground up, using several php sources as inspirations (as indicated by the TPL suffixes). I can't get it to work so please if you could indicate what I'm doing wrong here: [CODE]<?php if (!isset($_GET['page'])) { $page = "news.php"; include ($page); } else … Web Development php | |
Hello, I have these div tags, they're very similar but I just need to change the IDs. Is there anyway to condense this code? [CODE] $(document).ready(function(){ //Full Name var changeName = $('#changeName'); var cancelName = $('#cancelName'); var fullnameDisplay = $('#fullnameDisplay'); var fullnameChange = $('#fullnameChange'); var helperName = $('#helperName') changeName.click(function(){ $(this).hide(); … Web Development javascript javascript-jquery | |
Hello again :D Now that I have my member's profile, how can I let other members post comments/messages on his profile? Thanks, Web Development php | |
Hello friends, I want to know how to open a pdf file in PHP when a user clicks on that pdf link. Like [B][U]Rules pdf [/U][/B]when a user click that link,in the next tab pdf file of rules will open Thanks | |
How I can write down a code which uses two Two AJAX-es in combo-boxes? For [B]Country[/B], when user clicks Country combo-box, [B]State Combo-box[/B] will fetch with respective Country, and if when user clicks [B]State combo-box[/B], [B]cities Combo-box[/B] will fetch with respective State. All data will came from database. I successfully … Web Development javascript php | |
Hi i have developed a photo gallery in php and now i want to add comment section to those photos in the gallery.Actually i have table to store the comments regarding the particular image.I'm able to retrive the recent comments for the image,but the problem here is i'm not getting … Web Development php |
The End.