52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 05026652

Hi guys, I have recently tried to integrate the following script into my website to use with contact form (found here - [url]http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/[/url]) My Script looks like this: [CODE] <?php //new function $to = "hicky2k@hotmail.com"; $nameto = "rhys"; $from = $_REQUEST['client_email']; $namefrom = $_REQUEST['client_name']; $subject = "Hello World Again!"; $message …

Web Development php
Member Avatar for letoii
0
409
Member Avatar for cchap

I am using flat file db, not mysql so I can't use $limit I need to limit the number of records to 1, if more than 1 then echos something else: [CODE] $result = $db->getall(month); foreach($result as $item) show_record($item); } [/CODE] I tried to use 'break' but it comes back …

Web Development php
Member Avatar for cchap
0
140
Member Avatar for cchap

I am using a FFDB database (Flat File Database). This script works but it only shows first record (#1), if I delete the 1st record I get a blank page. I want to call all records and find 1 (one) that matches the criteria(s) independent of its record (key) number. …

Web Development php
Member Avatar for cchap
0
111
Member Avatar for lunac

I'm trying to send an html/plain text email for an invoice program I am writing. I really want the html message because it offers better layout options for invoicing and some features to help my customers with their payments. However, some email clients don't work with html email -- especially …

Web Development email html-css php
Member Avatar for pircoThe0ne4nd0
0
2K
Member Avatar for web3

Variables vvi and hhi should be with for loop turned into vv1...vv30 and hh1, hh2...hh30. Now I can't get variables tv, lv, bv and rv to return the variable(vv1 or hh1...) value instead if I put vv into quotes it turns the variable into a string (with value: vv1 or …

Web Development html-css javascript
Member Avatar for Troy III
0
186
Member Avatar for cjohnweb

Hello all, I've a seemingly simple question, but it's kind of got me thinkin there might be a "proper" way to accomplish my goal. My goal is a simple MySQL database schema install. In PHPMyAdmin I export a database, any database. I then save the file to the root directory …

Web Development mysql php sql
Member Avatar for cjohnweb
0
292
Member Avatar for Tenaciousmug

This code will not insert OR update. But on the other ones it will.. but for this one, I'm doing an extra step to say that they can claim the item or not. From adding that extra step, it won't insert or update. [code]$rand = rand(1,3); if ($rand == 1) …

Web Development php
Member Avatar for ddymacek
0
201
Member Avatar for westerncj

Hello, I'm new to php and I'm trying to code my first contact form. The only problem I have is that I receive no email when I test it on my server. I have an index.php file and a handle_form.php file. Here is my code... Am I doing something wrong? …

Web Development php
Member Avatar for westerncj
0
160
Member Avatar for raf.fredi

can anyone help me to create my own webmail?

Web Development php
Member Avatar for pritaeas
0
100
Member Avatar for Coyx

Hi everyone, My second time back to Daniweb looking for assistance with PHP. :) Okay, here's my PHP, and I'll explain what it does. [CODE]dbConnect(); if ($userclient == '2438') { dbOpenDatabase($GLOBALS['res_2438_contacts']); } else { dbOpenDatabase($GLOBALS['db_contacts']); } /************************************************ * THE IMPORTANT BITS - CHANGE BELOW * ************************************************/ //Product ID for Safety …

Web Development mysql php unix
Member Avatar for Coyx
0
236
Member Avatar for Peter1

I need a fresh start and some fresh ideas. I get some text from a MySQL database and present like below. Each row is divided into five columns with radio buttons. ---------------------------------- Text 1-Text 2-Text 3-Text 4-Text 5 Radio1-Radio2-Radio3-Radio4-Radio5 ---------------------------------- Text 1-Text 2-Text 3-Text 4-Text 5 Radio1-Radio2-Radio3-Radio4-Radio5 ---------------------------------- and so …

Web Development php
Member Avatar for Peter1
0
213
Member Avatar for paresh_thummar

[CODE] string sid = Session["id"].ToString(); string q1, q2; q1 = "select count (*) from All_msg where target_id = '" + sid + "'"; SqlCommand cmd1 = new SqlCommand(q1, cn); int v1; v1 = (int)cmd1.ExecuteScalar(); q2 = "select count (*) from All_msg where target_id = '" + sid + "'"; SqlCommand …

Web Development asp.net session
Member Avatar for kvprajapati
0
94
Member Avatar for marietta_kan

I am pretty new in jquery and done some research on the internet but i couldn't much of a help...I want to create to drawers that will slide down on mouseover..i don't think the content is rellevant...any ideas???

Web Development javascript
Member Avatar for marietta_kan
0
85
Member Avatar for hermann87

Good God, I've been stuck for like 2 hours, I suppose I can't think clearly anymore, but I just don't see why the statement below won't work, please help me out : [CODE]<?php session_start(); $username = $_GET['username']; $db = new PDO('mysql:host=localhost;dbname=subscribers', 'root', ''); $sql = "INSERTO INTO users (username) VALUES …

Web Development php
Member Avatar for hermann87
0
143
Member Avatar for chaychie

Hi all, I am facing a problem here which would like to seek helps from the experts. I have a table which is able to display all the data in text field format from the database in a table. The users are able to edit the displayed data. I would …

Web Development perl php
Member Avatar for Hummdis
0
148
Member Avatar for dzen

I have follwed the tutorial on [I]JSP database connectivity according to Model View Controller (MVC) Model 2[/I] for login servlet. I use ServletConfig servlet and init- parameters from web.xml according to the tutorial. I am using Netbeans IDE. Bu I receive this exception whan I try to use login form. …

Member Avatar for peter_budo
0
561
Member Avatar for rocket1356

I am trying to open another page from an image. I can open the page on a different window by doing this: onclick="Response.Redirect(cci_info\cci\features\create_CCI\WebForm1.aspx);" But I don't want to open another window, rather I need the image button to open a page in the same window. Thanks for the help. [code=ASP]<asp:image …

Web Development asp.net
Member Avatar for ziketo
0
2K
Member Avatar for momonq1990

my calculator work perfect in IE but not in mozilla? what i need to do.. i think its all about to my function i need help to onClick event. pls. here's code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../css/calculatorCss.css" rel="stylesheet" type="text/css" /> <title>tile calculator</title> <script type="text/javascript"> <!--variable …

Web Development html-css javascript web-browser
Member Avatar for momonq1990
0
267
Member Avatar for ericxye

I am looking for a button that inside a php table. I tried [CODE]echo "<td bgcolor='#FFFFFF'><center>" . '<input type="button" name="Activate" value="Activate" class="form" onClick="activate_user_id('.$rows['username'].','.$rows['loginid'].','.$rows['activated'].')">' . "</center></td>"; [/CODE] I know people said i have to use AJAX to make it work. but i dont know AJAX at all, Can anyone show me …

Web Development php
Member Avatar for ericxye
0
209
Member Avatar for sherinpoulose

I am trying to generate rules form of output from user data.that output i have to store in sql database.so when each time , user is giving different data for processing, i have to create a new database for storing the rules from their data. how can i do this …

Web Development asp.net
Member Avatar for adam_k
0
105
Member Avatar for abhi10kumar

I am using session variables, it is working on local but I run on server, it is not running. I am using Jquery

Web Development php session
Member Avatar for cjohnweb
0
144
Member Avatar for denmarkstan

Please good people, i need your help. I having been trying to solve this problem, but no way. what is the best method to insert data so that this error of data truncation will be avoided in C#/asp.net. Here is what i have been trying to do: [CODE]public class BuildTable …

Web Development asp.net session
Member Avatar for stbuchok
0
218
Member Avatar for 7kemZmani

This is jquery script for insert new row in a table and each new row containing 3 td text input, current time and current date [CODE] <script type="text/javascript"> $(document).ready(function(){ var $prototypeRow = $("#prototype").find("tr").eq(0); $(".addRow").click(function(){ var tds = $prototypeRow.clone(true).insertAfter($(this).closest("tr")).find("td"), dt = new Date(); tds.eq(1).find("input").val("textInputGoesHere"); tds.eq(2).html(dt.getHours() + ":" + dt.getMinutes() + ":" …

Web Development javascript javascript-jquery
Member Avatar for 7kemZmani
0
838
Member Avatar for ericxye

function edit_user($username){ if ( $username == 'admin' ) { $query = "SELECT * FROM login WHERE username != 'admin'"; $queryResult = mysql_query($query) or die (mysql_error()); echo "<table border='1'> <tr> <th>Loginid</th> <th>username</th> <th>email</th> <th>activated</th> <th>Edit User</th> <th>Delete user</th> </tr>"; while($rows = mysql_fetch_array($queryResult)) { //Todo: Here is a problem //probably use mysql_num_array …

Web Development php
Member Avatar for ericxye
0
91
Member Avatar for lwschjang

I have a new project. The site will require registered users to pay an amount to upload content to the site. Also, I would like a thumbnail scroll gallery on the homepage that will pull up random profiles (a featured profile feature). If anyone can point me in the right …

Web Development php
Member Avatar for balajim1980
0
177
Member Avatar for ivanCeras

Hi everyone, Does anybody knows how to position the scroll bar of the code generated by the css div{overfolw:scroll}?.. The default position of the scroll bar is on the top.. now, what i want is to position the scroll bar at the bottom of the <div> overflow:scroll... I need help... …

Web Development html-css javascript
Member Avatar for phpdude
0
204
Member Avatar for tinker

[CODE] $(function(){ $('.table_pay').dblclick(function(){ if($('div', this).is('.value')){ var v = $('.value', this).html(); $('.value', this).remove(); $(this).append("<input type='text' name='val' class='field'>"); $('.field', this).attr('value', v); $('.field', this).focus(); $('.field', this).focusout(function(){ var val = $(this).attr("value"); $(this).remove(); $(this).append("<div class='value'>"+val+"</div>"); }); } }); }); [/CODE] What to do on the 13th line that the reference object which is on the …

Web Development javascript
Member Avatar for Airshow
0
311
Member Avatar for jollyjain

This is my blogic.php file. The problem is i have created a patient login form and a database name"gmd" so as soon as i fill in d username n password in patient login form it should retrieve the whole information from "gmd" database bt it is showing an error in …

Web Development php
Member Avatar for Stefano Mtangoo
0
293
Member Avatar for public-image

Hi there! I have tooltips on my site that appear when you hover over text/image but i would like different background for different hovers. the code at the moment accepts all variables passed in but doesnt initalise and apply the styles. I have attached my code and would be thankful …

Web Development html-css javascript
Member Avatar for public-image
0
154
Member Avatar for atfOnly

I don't know what's wrong with this code. I think this code should work. I'm about to store number of each query in array [CODE] $antecedent=array(); for($i=0;$i<=$index;$i++){ if(isset($period[$i])|| isset($gpa[$i]) || isset($antecedent[$i])){ echo $period[$i]."&nbsp;"; echo $gpa[$i]."<br/>"; $queryAntecedent=mysql_query("SELECT * FROM mytable WHERE study_period='$period[$i]' AND ipk='$gpa[$i]'") or die (mysql_error()); $antecedent[$i]=mysql_num_rows($queryAntecedent); }//endif }//endfor print_r …

Web Development mysql php
Member Avatar for Insensus
0
101
Member Avatar for public-image

Hi Guys! I am trying to custom signature images, a generated one as such on a form submit. At the moment I am still doing the images although I wish to add an image into the signature and I am not too sure how I will do that. I have …

Web Development image php
Member Avatar for pssubash
0
76
Member Avatar for atrueresistance

So, I'm using ASP with a VB code behind. I have text boxes that are supposed to appear one by one only if the there is a location number in the preceding text box. I had that function working perfectly, but I needed to add a MaskedEditExtender in the place, …

Web Development asp asp.net visual-basic
0
221
Member Avatar for devsaini

hi, i have a table stu_record and a field name is image_student as a image type and image save in it in binary form. nor when i'm login i want to store this image into a session variable. and on other pages this session value store into another table as …

Web Development asp.net image session sql
Member Avatar for vijay_myl
0
140
Member Avatar for mcwebalizer

Of course, Yesterday I ask for help for my google map route creator. And of coure, I made my google maps route creator source. [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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Google Maps</title> <script type="text/javascript" src="jquery.js"></script> <script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> …

Member Avatar for mcwebalizer
0
1K
Member Avatar for vuyiswamb

Good Evening All I have Silverlight application and it is rendering better(not Good) in IE and it renders differently from different browsers, like IE8,Firefox 3, 4, and worse in Chrome. i tried different examples , i used one example that was good , but the moment i view this in …

Web Development asp.net html-css perl
Member Avatar for stbuchok
0
120
Member Avatar for Reliable

Hey Everyone, Thanks for taking the time to read this and help me with my problem. I grabbed [URL="http://dynamicdrive.com/dynamicindex2/crosstick.htm"]this [/URL]code from Dynamic Drive. I'm trying to style it better. I've had some success, but some thing are giving me a run for my money since i don't know JS. [LIST=1] …

Web Development javascript
Member Avatar for stbuchok
0
127
Member Avatar for oinkpink

Hi, i need help , i wanted images to be for instance 4 in row, before it goes on to the next row, and below the images i wanted a title there. This are my work so far, but i just cant get to what I wanted, i've been searching …

Web Development image mysql php
Member Avatar for oinkpink
0
4K
Member Avatar for uselessninja

hi ... im searching on google and i cant find it.... how to display the texts form my main html form to another html form?....since i didnt know how to hide the textboxes and select list for printing the html form... my plan is that im gonna pass all the …

Web Development html-css javascript
Member Avatar for urtrivedi
0
309
Member Avatar for jacksantho

Hi, I need to use PHP inside html print ' <html> -----part <select name="speriod"> [B] <option value='<?php $cval ?> print '>'<?php echo $cval ?> print '</option>[/B] </select> </html>' I don't know to add PHP inside html tag. Facing Parser Error

Web Development php
Member Avatar for karthik_ppts
0
89
Member Avatar for mynameissiva

hi folks, Here i face problem in my webpage [servlet + mysql] Connection are working fine. But when running time it get download the page instead of display the content in the browser. I try myself so many time, cant sove it.. plz guys help me to overcome this problem. …

Web Development java-jsp mysql
Member Avatar for mynameissiva
0
254
Member Avatar for astnrocker

I need for the form to do the following: when age is greater than or equal to 65 enter "yes" in the hidden field when age is less than 65 enter "no" in the hidden filed return true Create a page processAge.htm that Writes the message on the page Hi …

Web Development javascript
Member Avatar for Airshow
0
190
Member Avatar for ankit.pandey3

Hi friends.... I want to execute my first servlet but i am not able. I am going to explain what steps I did. 1-First I copy "Servlet-api.jar" from lib folder in tomcat and paste it in ext folder of java. 2- Create HelloWorld.java in somewhere in my hard drive [CODE]import …

Member Avatar for mynameissiva
0
357
Member Avatar for jacob21

I am trying to use phone validation of 10 digit & check the filled data is numeric or not.. Need suggestion. Below the function i am using [CODE]validate: function () { contact.message = ''; if (!$('#contact-container #contact-name').val()) { contact.message += 'Name required. '; } if (!$('#contact-container #contact-phone').val()) { contact.message += …

Web Development javascript
Member Avatar for pritaeas
0
651
Member Avatar for doctorphp

Hi everyone, I have setup a cron job to delete users from my site if they are not verified within 24 hours of registration. The field [b]registration_timestamp[/b] is stored as a timestamp and I also have a field called [b]verified[/b] which is stored as a 1 or a 0. Here …

Web Development cpanel php
Member Avatar for pritaeas
0
271
Member Avatar for vuyiswamb

Good Day All i have a IIS server. This IIS Server is publicly available , so i have hosted some WCF services in that server , i can access the URL from outside my network, but i can use it. the url that i access it with is [B][url]http://196.XX.XXX.XXX:8095/datalayer/[/url] [/B] …

Web Development xml
Member Avatar for vuyiswamb
0
160
Member Avatar for vuyiswamb

Good Day All i have a Silverlight application that i have written. Tested and it works well in our internal network. Now in my company we have another server, so our Network guys open a port so that someone who is not in our network can view the website. Now …

Web Development xml
Member Avatar for vuyiswamb
0
173
Member Avatar for dwinn

Hello, I am developing a program in VB.Net and ASP.Net to allow a user to type in a code in a textbox and when they click search, a list of records with a code matching the code typed in are retrieved from an SQL Server Express database. At the moment, …

Web Development asp.net vb.net
Member Avatar for Pgmer
0
436
Member Avatar for lastgame2007

it doesn't have any error but also i does not update in my database? [CODE]<head> </head> <?php include('connect.php');?> <body> <?php mysql_select_db("dbusers",$connection); $result=mysql_query("UPDATE tblinfo SET idno='$idno', name='$name', address='$address', birthdate='$birthdate', contact='$contact', email='$email' WHERE 'index'='$id'"); $result = mysql_query($update) ?> </body> </html> [/CODE]

Web Development mysql php
Member Avatar for kurtopia
0
332
Member Avatar for lloydsbackyard

how to convert Month in words to its numeric equivalent.... example: <?php $month = 'JANUARY'; // code to convert the month JANUARY to its numerical equivalent... echo 'help please for the numerical JANUARY equivalent here'; ?> ----------------------------- SAMPLE OUTPUT 01

Web Development php
Member Avatar for karthik_ppts
0
157
Member Avatar for Lius

[CODE]<script type="text/javascript"> function populateHarga() { var x=document.getElementById("barang").value; document.getElementById("harga").value=x; var y=document.getElementById('barang')[document.getElementById('barang').selectedIndex].innerHTML; document.getElementById('nama_brg').value=y; } function populateTotal() { var y=document.getElementById("jumlah").value; var x=document.getElementById("harga").value; document.getElementById("totalnya").value=x*y; } </script> <body> &nbsp;<p> <?php mysql_connect("localhost","root",""); mysql_select_db("stageco"); ?> <table border="1" cellpadding="0" cellspacing="0"> <?php $nama_b=$_GET['nama_brg']; $harga_b=$_GET['harga']; $jumlah_b=$_GET['jumlah']; $total_b=$_GET['totalnya']; if($nama_b!="") { mysql_query("INSERT INTO temp('t_nama','t_harga','t_jumlah','t_total') VALUES('$nama_b','$harga_b','$jumlah_b','$total_b')"); } $result=mysql_query("SELECT * FROM temp"); $i = …

Web Development javascript mysql php
Member Avatar for Lius
0
218

The End.