17,029 Solved Topics
Remove Filter ![]() | |
i am trying to get this code to work but there is something wrong with the array (not to good at these). the main part of the code works it is sending out the email but only ever to one registered user. here is the code i have so far. … | |
Hi i am new to php, can any of u help me, I am storing details such as name , address, email id, phone no, fax no and all. and i am creating edit form to edit those details , i am returns almost all values except address and select … Web Development first-post php | |
I am looking for a PHP tutorial or a script to write a small email contact form in OOP not the procedural method. I would like to use the mail server connected to my hosting services as opposed to sending it through Google. Thanks! WBR | |
Hello, I have this snippet of code to echo out the "mailer_id" with the largest value - [CODE]<?php $result = mysql_query('SELECT MAX(mailer_id) FROM mailer_directory')or exit(mysql_error()); echo 'the max mailer_id is ' . mysql_result($result, 0); ?>[/CODE] My question is how do I echo out the corresponding email value for that field … | |
Dear Friends, I am working on a project where i have a JSP page(ex1.jsp) and in that JSP page i have 2 frames((ex2.jsp on top) and (ex3.jsp in bottom))...When ex1.jsp is called..it has to load ex2.jsp frame and ex3.jsp by passing some paramenters to it.. Please see the code.. [code] … | |
Hi, I want to display a java script confirmation box before browser session is timeout with message as "Your session is going to timeout in 2 mins. Do you want to extend session?", if user is clicked on "Ok" button within the session timeout period, session should be extend. If … Web Development asp.net javascript session | |
I created a dataset in the Dataset Designer by draging a database table into it, then I added a new select SQL query to the DataTable. Check the pics I think it helps explain it better. [URL="http://i43.tinypic.com/2qs7707.jpg""]http://i43.tinypic.com/2qs7707.jpg"[/URL] Now the problem comes when I try to use an ObjectDataSource, it sees … Web Development asp.net dataset visual-studio | |
I have a .htaccess file which forwards non www request to www [code] Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] [/code] However, I have a problem if i were to put into the url mysite.com/test.php it will not forward to the www site. Any help … Web Development php | |
Hi everyone! I really love this forum, it's by far the best coding forum I've been to. I have been attempting form validation and login security for about a month now, and I made the mistake of using all JavaScript for validation (though my site requires JavaScript...sooo I could always … Web Development php | |
Hey all! Pretty simple I hope :D I have a website that absolutely requires JavaScript to be enabled for it to work. How can I make it so that if a user with JavaScript disabled tries to view my site they are redirected to an error message? Thanks! Web Development javascript | |
Hi Guys, I'm having a problem with the below code. It's probably a simple mistake as I'm relatively new to PHP, and even newer to socket programming. The background is that I'm developing a socket server for a multiplayer game. Here is the relevant code: [CODE]class PlayerList { var $plist … Web Development php socket-programming | |
Hi everyone, Im making a game that requires a login. Ive got stuck on a problem; When a user tries to log in, it wont accept it, its in the database, the script checks the database, but it still says no Here is my login check: [code=php]<? session_start(); header("Cache-control: private"); … | |
Hi ... i need to inserting around 20 values...which method is best in ajax post or get..i dont know abt ajax..plz send me ajax registration or small form (which having inserting records into db) ...i can learn by using this.... Thank u.. Web Development first-post php | |
Hi Guys, I'm new to PHP and need help with passing variables from my form to multiple pages. I have global registers turned to off. I am able to retrieve my form inputs on the second page.. however unable to retrieve the same on the other pages after. for example … Web Development php | |
hi my page contains a button with a javascript click event. when i click the button i want to check if the page is valid, and if the answer is yes, to perform the event function. if the page is not valid i want the error message to show in … Web Development javascript | |
Error: The server rejected one or more recipient addresses. The server response was: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server … Web Development asp.net client-server | |
Hai can any tel me , How i can get username from database where i logged in using userid . here is the code below. [code=php]if(isset($_SESSION['u_name'])){ include 'dbcon.php'; $qry = "SELECT * FROM tbl_user where user_id='".$_SESSION['u_name']."'"; $result = mysql_query($qry,$con); if($result) { $row=mysql_fetch_array($result); } while($row=mysql_fetch_array($result)) { echo ' Welcome ' .$row['user_name']; … Web Development php | |
is there anyway of distinguishing between whether the button is clicked directly by a mouse or its click event has been triggered logically? [code]<input type="button" id="someID" value="dene" onclick="alert('something');" /> <input type="button" value="dene2" id ="someID2" onclick="document.getElementById('someID').click()" />[/code] now guys i want some kind of thing : when you directly click on … Web Development javascript | |
hi I'm trying to execute a stored procedure which returns a datatable my code is: [CODE=asp.net]try { string conStr = WebConfigurationManager.ConnectionStrings[0].ConnectionString; SqlDataAdapter adapter; DataTable ans = new DataTable(); SqlConnection connection = new SqlConnection(conStr); SqlCommand command = new SqlCommand(); command.CommandType = CommandType.StoredProcedure; command.CommandText = "usp_GetUserDetails"; command.Parameters.Add("@UserName", SqlDbType.VarChar); command.Parameters.Add("@Password", SqlDbType.VarChar); command.Parameters["@UserName"].Value = … Web Development asp.net visual-studio | |
How to clear all the items in the drop down list? [code] DropDownList1.Items.RemoveAt(j); DropDownList1.Items.Clear();[/code] These are not working for me. (am using VC#.net) any help would be appreciated thanks.. Web Development asp.net | |
if you add a directive like below, you can access the usercontrol class' public members and the class it self by typing its name, otherwise the compiler generates an error indicating that referenced member is not found. [CODE]<% @ Reference Control ="~/WebUserControl.ascx" %>[/CODE] Web Development asp.net | |
Yes everyone will point to using ahref<a href="index.php?variable=1>. But im just wondering if I can do the same thing using headers header("Location: index.php?variable=1"). Note: Yes I can also use sessions but wish to user headers. Thanks, Regards X Web Development php | |
I am a new JavaScript user. My teacher told me to display my name using javaScript i solvd it using (document.write) command. and then saving it in(.HTML) format.Now my teacher told me to do the above problm using an external .js file. Plz someone help me to solv this problem. … Web Development javascript | |
hi guys, i have a javascript application which compares two xml files, to show that comparison i load two files on two iframes and when user click on node(i rendered the nodes to span elements) i run a comparison function, the problem is i want to disable onclick event of … Web Development javascript xml | |
I have 2 websites: website A which is blank and is categorized; website B which doesn't have categories but has information; I want php to go to website B, get all the new information that has been added since last visit, and then update websites A database; now i know … Web Development php | |
Hi, Data is stored like this in Varchar(2500) (with paragraphs): [code] Looking for NET developer, programmer. Required skills: VB.NET NET MsSQL XHTML If you are interested, please call "000" number's test. Thanks [/code] When i echo it, it is displayed like this: [code] Looking for NET developer, programmer. Required skills: … | |
This is something I have avoided for the longest time......and now I need a bit of help ??? What I am trying to do is simply build a recursive array based on parent->child, the recursion comes when their is the possibility to add any number of sub-children to sub-children so … Web Development php | |
i have this line of code which i cannot see a problem with but i keep getting an error. [CODE]$sql= "INSERT INTO emails (Firstname, Lastname, email, table) VALUES ('$a', '$b', '$c', '$table')";[/CODE] the error i keep getting is [CODE]Error: You have an error in your SQL syntax near 'table) VALUES … Web Development php | |
I have written an application to do the following [list] [*]upload a txt file to the server [*]move it from the temporary directory to a more permanent one [*]parse the test file line by line and do some processes [*]create and write the result to a new text file [/list] … Web Development file-stream file-system php | |
Hi there! I'm having a very odd problem with mysql_fetch_array my code looks like this: [code] function getMachines($domain){ if (! is_resource ( $this->connection )) { return false; } else { if (get_magic_quotes_gpc ()) { $domain = stripslashes ( $domain ); } $query = sprintf ( "select machines from `domains`.`%s`", $this->escape … | |
Hi, I use PHP Swift mailer to send around 2000 emails in one go. I just wonder if there is a chance to find out: Who have received? Who have not received? Any idea? Thanks Web Development php | |
hi I have a table in my database that look like this: id - name - orderno the table has data in the fields of id and name but orderno is empty. I made a html form based on the data of this field, in front of each name field … | |
Hi all, I have a good one here and i am hoping there is an answer for this. I have a form which displays a profile. Each profile has multiple rows of data, each row consists of a sort order, an operation name and a delete flag, which when saved … Web Development coldfusion | |
Heyy, need some help here. ok, I've got my script here right. [CODE]<html> <head><title>Display Records</title> <style type="text/css"> td {font-family: tahoma, arial, verdana; font-size: 10pt } </style> </head> <body> <?php $db="aseco121"; $link = mysql_connect('127.0.0.1: 3306', 'root', '******'); if (! $link) die(mysql_error()); mysql_select_db($db , $link) or die("Couldn't open $db: ".mysql_error()); $result = … | |
Hi all, I need to do a query like this: [CODE]SELECT * FROM table1 WHERE ( SELECT COUNT(*) FROM table2 WHERE fbid = *current primaryKey*) > 150[/CODE] How do I get the *current primaryKey* in order to do the second section of the query? Max. Web Development php | |
Hi I explain what I have: user will visit the site to change booking detail using their client and booking ID, once thy typed their ID they will be directed to another page where they will be welcomed and they will be presented with a form to enter the booking … Web Development php | |
[code] <html> <head> <title> database connectivity </title> </head> <body> <H1> DATABASE CONNECTIVITY </H1> <% dim constr constr= "provider=sqloledb;data source=1.234.5.678,1234;initial catalog = abcd; User Id=abcd; password=abcd" set conobj = server.createobject("ADODB.Connection") conobj.connectionstring = constr conobj.open set comobj = Server.CreateObject("ADODB.Command") comobj.CommandText = "test2" [COLOR="Red"]comobj.CommandType = adCmdTable[/COLOR] set rs1 = comobj.Execute %> </body> </html> … Web Development asp open-source | |
hi all i have problem with save zero before number in the var example [CODE] $num=0024; echo $num;// show 24 [/CODE] Web Development php | |
[CODE]using System.Configuration; string s = ConfigurationSettings.AppSettings["con"];[/CODE] the code above gets the value from the app.config file where the following markup exists [CODE]<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="con" value="foo"/> </appSettings> </configuration>[/CODE] | |
you can access repeater's row data using the code below in the ItemDataBound event handler [CODE]protected void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e) { object value = DataBinder.Eval(e.Item.DataItem, "columnName"); }[/CODE] Web Development asp.net | |
[CODE]System.Timers.Timer time; protected void Page_Load( object sender, EventArgs e) { time = new System.Timers.Timer (); time.Enabled = true ; time.Interval = 2000; time.Elapsed += new System.Timers. ElapsedEventHandler(time_Elapsed); } private void send() { MailMessage mm = new MailMessage (); mm.IsBodyHtml = true ; mm.Body = "foo" ; mm.To.Add(new MailAddress ( foo@foo.com … | |
it is pretty easy with one line of code : add System.Diagnostics namespace then [CODE]Process.Start("C:\\foo.exe");[/CODE] | |
Hello, this is hopefully a very easy one for you guys, but as a beginner I'm not sure how to do this correctly: I have a form [icode]<form method="post" name="boxsearchform" action="search.php"><input name="title" id= "title" type="text" value="" /><input type="image" name="search" src="go.gif" /></form>[/icode] that passes the variable of "title" to search.php. On … Web Development php | |
Hi all, I have just created a template for my website and then have put in my GOOGLE Adsense script in it. When i open it with Internet Explorer. The page gets displayed nicely. But when i open it with Mozialla Firefox it doesnt display any Adsense ads. Secodnly the … Web Development google-adsense javascript | |
I have a series of 5 checkboxes installed in a web form. I have the code to get the checkboxes to echo back onto a confirmation page for the site visitor to see. However I can't get the info to come back to me in the email. I don't know … | |
[code] <html> <head> <title> database ado </title> </head> <body> <%constr = "provider= sqloledb; data source = 6.123.3.183,1234; initial catalog=dbase;User id=scot; password=pwd1"%> <%set conpubs= server.createobject("ADODB.Connection") conpubs.connectionstring= constr conpubs.open%> <%Dim rstest Set rstest = Server.CreateObject("ADODB.Recordset") rstest.Open "test", constr, adOpenDynamic, adLockOptimistic, adCommandTableDirect rstest.addnew.fields("name")="three" rstest.update%> <%while not rstest.EOF Response.Write rstest("name") & "<br>" rstest.movenext Wend%> … Web Development asp open-source | |
I want to use $_GET['error'] to fetch error messages from an array. Heres my array: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] So if I did [ICODE]echo … Web Development php | |
On my MySQL search what I want to do is redirect a user to another page and show an error message if the search returned no results. But for some reason the user never gets redirected. Can you spot my problem? :| [code=php] $sql = "SELECT * FROM `list` WHERE … Web Development php | |
I am working on a site that must drag and drop items, I use scriptaculous 1.8.2, effects, dragdrop.js. See the picture of the website: [url]http://http://www.freeimagehosting.net/uploads/a5e185062a.jpg[/url] or [url]http://img11.imageshack.us/img11/4913/myplansite.jpg[/url] [I](each number 1..8 is an drag and a dropable)[/I] But now I am lost, I kan drag, i can drop and invoke the … Web Development javascript | |
hi i have an ajax calendar extender control that is set to a textbox. how can i get the current selected date value from the calendar ? Web Development asp |
The End.