52,566 Archived Topics
Remove Filter ![]() | |
Hi I have a difficulty in insertion data. I don't get any error message but it doesn't insert data to database. My code is below. Where am I wrong? [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <HR noshade size="5" width="50%" align="center"> <title>ZONE</title> … Web Development java-jsp | |
Hello evryone! i am very new to PHP! I study it with ebook: PHP & MySQL For Dummies , 3rd Edition! Once i try and have copy the whole code from the book like this(write in notepad) _______________________ [code=php]<html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <p> … Web Development php | |
I want to design a website kind of like "Feedjournal" and "Tabbloid" that will get important rss feeds and blogs to make a newsletter for our company, and then auto email to all staff on set time intervals. I am very new and want to know how to start. What … | |
How we can use current time instead of '15:33:56' [ICODE]now()[/ICODE] Function or [ICODE]time()[/ICODE] but it gives wrong time in AM and PM. [CODE=php]<?php function twentyfourToTwelve($time) { return date('g:i:sa', strtotime($time)); } /*** Example usage ***/ echo twentyfourToTwelve('15:33:56').'<br />'; echo twentyfourToTwelve('15:33').'<br />'; echo twentyfourToTwelve('15.12').'<br />'; echo twentyfourToTwelve('2:33:56').'<br />'; echo twentyfourToTwelve('15:33').'<br />'; ?>[/CODE] Web Development php | |
Hi..is this a correct SQL statement to display details of a record from table and column that is variable [code=PHP]$query= (SELECT * FROM $_GET['$tablename'] . "' WHERE id = '" . $_GET[' $row2[$cols'] . "' ;[/code] the id and table were passes correctly on the URL but the error is … Web Development php | |
Hello guys, I need an expert advice if it is possible to code inside an XML file? Example, news.xml whereas in that file you have to code connecting to MySQL database then retrieve data. Generated data is the XML required tags for the RSS and will be written in similar … Web Development file-system xml | |
Hi guys i need your help can you explain this code for me the using the aspx.vb to write and i not understand can explain it to me pls? Below is the code [CODE]Protected Sub Login_ImageButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Login_ImageButton.Click Dim loginId As String = … Web Development asp.net | |
I have one table which is generated using javascript dynamically. In have write one function which creates table dynamically for IE i have writed [B]mytable.onClick=some_function();[/B] for onclick event it works fine. But when i generate more than one table dynamically using the same function then onclick does not work. If … Web Development javascript | |
Hello, Win App: takes a value from a textbox1 and send it throw parameter to a method in the website called WebDisplay(textbox1.text) Web App: recives the value of the parameter. so how can i do that..? thanks! | |
Hi frnds... Here i am going to display albums in a table...But, all albums is display in only one row.Its looking not good in my page...So,i want to display in 2 or 3 rows..plz change this code as my requirement.. .[CODE] <table width="142" height="188" border="0" align="center"> <tr align="center"> <?php $gquery="SELECT … Web Development php | |
I have a Flash movie on a web page and I want to send parameters to it with JavaScript to have it go to a selected frame. The AS3 code receives its information via an ExternalInterface API. The following code parses the URL argument (?page=x) and I want to send … Web Development api flash javascript | |
hi there, im a php trainee and really need a help in my javascript ..anyone? i have my code here that injects a patient name ..i need to know if the patient is already injected..if so..it should not be allowed and should pop an alert that say...'sorry the name has … Web Development javascript | |
Hi Friends, I am using update Panel to update the records without being page refreshed... and using updateProcess control to lock the screen with ModalPopup div Css.. After Updating the Record from the CS Files, giving the alert message using ScriptManager.RegisterStartupScript method. But this message is displayed on the modalPopUp … Web Development asp.net | |
Passsword Strength Checker [CODE=php]<?php function testPassword($password) { if ( strlen( $password ) == 0 ) { return 1; } $strength = 0; /*** get the length of the password ***/ $length = strlen($password); /*** check if password is not all lower case ***/ if(strtolower($password) != $password) { $strength += 1; … Web Development php | |
I would like to make a button that will save the current webpage you are viewing like clicking FILE>SAVE AS in IE, FF, etc. Once clicked you can "precode" the default name of the file based on the variables used in the webpage. Also I if possible I would like … Web Development php | |
Hi mates.. I would like to ask you small question and I do really appreciate if you helped me out. I want to make a VERY SIMPLE "Poll" using Javascript here's my code, below it I'll tell you what I'm stuck at: [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> … Web Development html-css javascript | |
hey all i need some help in redirecting my page. following is my code. here is the scenario: when the user enters the admin panel from another website set up on a different host/server (a cms actually) the user is redirected to this page and the data from the main … | |
I'm having issues as well; I have a database jokes with a couple rows already and am trying to insert another row (the ID is auto incrementing). This is what I have, as you can see I'm trying to insert a value from a form. Here's the form [code] <FORM … Web Development php | |
I am having problems with a data entry issue i have a field in my database which is called headline it is set to varchar 255 when i insert for example something with for eample. [code] The 'dogs' are very big. [/code] the code is sent by normal $headline=$_POST["headline"]; then … | |
Hi, I am having trouble replacing this pattern. Could someone help please? FROM: (URL="http://google.com") google website (/URL) The sign () is actually [] but vbulletin is changing it to a link, so made a () sign instead. TO: <a target="_blank" href="http://google.com"> google website </a> Thanks :) | |
Hey guys, am learning php/mysql and am trying to learn how to do the following. I have a database, and a form with 3 fields. I want fields 2 and 3 to be filled with data from mysql table immeadiately after field 1 receives a value. I think I am … | |
I want to read just the last record of file....I m able to read the whole file. Secondly I want to know that in VB.Net we have ubound to get the upper bound of the array..What is the equivalent in ASP.net? [code] protected void Page_Load(object sender, EventArgs e) { string … Web Development asp.net file-system vb.net | |
Whenever I echo or print a string containing an email address to my webpage the HTML code automatically parses the text and shows it as a "mailto" link. If I use... echo "Hello"; it prints Hello as expected on the webpage. If I use... echo "hello@whatever.com"; it now appears as … | |
![]() | Hi All... Any way to auto-increment the last inserted numerical value in the field "id" and then insert the newer value (id+1) in the database upon submitting the form ??? ...... How do i resolve that last submitted "id" ?? ..... I thought of doing that using a txt file … Web Development php ![]() |
Hi everybody, Webish is glad to join you here at Daniweb. I'm an IT entusiast and I believe it's gonna be a:) worthwhile experience in here. Web Development php | |
Hey fellas, I need some help doing on action changes This is what I got. I have a loop that has the form name "autoEmailRedirect" [code] <form name="autoEmailRedirect" method="post" action="autoEmailContact.jsp"> <td valign="top" class="paddingLeft10 paddingTop9"> <div class="paddingBottom2 boldFont paddingTop20"><%=(String)autoName.elementAt(i)%></div> </td> <td class="paddingTop9 paddingLeft" valign="top"> <div class="paddingBottom2 paddingTop20"><%=(String)autoEmail.elementAt(i)%></div> </td> <td class="paddingLeft11 paddingTop9 … Web Development cpanel javascript | |
Hi I need some help, I currently have a timer that counts down and what I would like is when the times runs out it then displays text or html (answer to question). I currenlty have the timer counting down and a seperate js show answer link that will show … Web Development html-css javascript | |
HI all, I have done some work using javascript and css and html. Let me explain whole work: there are two select box one is for adults and other is for childs. I have done all rows are by default are invisbile when we select 2value from adults its will … Web Development html-css javascript | |
Hi, I want to calculate age of the person using this code [CODE=php]<?php /*** a date before 1970 ***/ $dob = strtotime("april 20 1961"); /*** another date ***/ $tdate = strtotime("june 2 2009"); /*** show the date ***/ echo getAge( $dob, $tdate ); ?>[/CODE] but it gives error [ICODE]Fatal error: … Web Development php | |
i have a problem with this code amay any one help me am doing a class project but stuck here is the code its bring an error Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in C:\wamp\www\kawempe_HC\staf.php on line 7 Warning: mysql_fetch_row(): supplied argument is not a … Web Development php | |
I got this source code from internet. This source purpose is to call ASP.Net function or method from JavaScript. [CODE] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default5.aspx.vb" Inherits="Default5" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!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"> <title>Developed … Web Development asp.net assembly client-server web-server | |
Hey guys. I am running a php script (locally) which runs through a loop several hundred times. Each time through the loop the same computation is done with the exception of two input variables being different. The input variables are obtained with a MySQL query based on the counting variable … | |
Hi, Its Ayesha, I am new to PHP and MYSQL , I am working on a Project in which I have to give rights to one user to UPLOAD a JPEG picture Using Browse . So Any one can Help? I want to store my JPEG Files in a Folder … Web Development php ![]() | |
I am using wysiwygPro editor and i want to be able to display the menu titles coming from the database. This is an example layout: [code] $editor->links = array( array('title'=>'Home', 'URL'=>'/'), array('title'=>'About Us','URL'=>'/about/', 'children'=>array( array('title'=>'Company History','URL'=>'/about/history.php'), array('title'=>'Franchise Information','URL'=>'/about/franchise.php'), array('title'=>'Shareholders Information','URL'=>'/about/shareholders.php'), )), array('title'=>'Services', 'URL'=>'/services/'), array('title'=>'Contact Us', 'URL'=>'/contact/'), ); [/code] So this … Web Development php | |
22 Hours Ago | Add to redhotspike's Reputation | Flag Bad Post I have never used PHP before. I'm pretty hardcore with (x)HTML, JavaScript, CSS, and I also know C++. Here's the thing - I need to create some sort of code that receives information from the back end of … | |
I have a web page where the users are supposed to be able to click a button to add a new table row. I have tried various javascripts found online but I am not a javascript person. The page is written in html and asp. I dynamically fill in the … Web Development client-server html-css javascript session web-server windows-server | |
Hello world!:)) Does anybody know how to send icq message in PHP?? Is it possible to send message to icq number like 433400749?? Web Development php | |
Hi can anyone help me check the code for this why cant send multiple attachment with this code got anything wrong. Help me please [CODE]<?php $to=stripslashes($_POST['to']); if($to == '0'){ $to='mail1@mail.com'; $ok=@mail($to, $subject, $body, $headers); }else { $to='mail2@mail.com'; $ok=@mail($to, $subject, $body, $headers); } $from=$_REQUEST['from']; $subject=$_REQUEST['subject']; $ip=$_POST['ip']; $phone=$_REQUEST['phone']; $body=$_REQUEST['problem']; $fields = array(); … Web Development php | |
Good Day, When I run my servlet in my web browser, everything runs fine ... until i press one of the option buttons, Deposit, Withdraw or Balance, then i get the following error: [COLOR="Red"] type Status report message /servlet/HTMLBank description The requested resource (/servlet/HTMLBank) is not available.[/COLOR] Here is the … Web Development java-jsp session web-browser | |
[code]<script languae="PHP"> open_database("location","username","password"); display_page("PAGE_ID"); close_database(); </script>[/code] Web Development php | |
Hello Doc's, I am using asp.net MVC for my application. I am dynamically generating HTML content from my controller using STRING variable. Below mentioned is the code snippet generaed by my controller using c# [code]<ul id=\"dhtmlgoodies_tree2\" class=\"dhtmlgoodies_tree\"><li id=\"1\" > <%=Ajax.ActionLink(\"ATI Display Driver\", \"Test/5\",new AjaxOptions(){UpdateTargetId=\"returnData\"}) %>[/code] Now when above code reaches … Web Development asp.net | |
Hi Guys I am trying to send a link in an email to my users - I am using CDO. I am having trouble contructing the link. Currently I am receiving the message "syntax error". [code] strBody = strBody & <a name= & "anchor" & id= & (rsEmailAlert.Fields.Item("S_Id").value) & href= … Web Development asp | |
hey frnds, tell me one thing as in VB.Net suppose if we want to connnect to SQL,then in form coding itself.We create the database,Create table ...& insert values... WE do that cz if we run the project at Client side,even if no database is there our project automatically creates it … | |
i want to write data accepted in a form to a text file. this is the code i am using. [code] $file=fopen("data.txt","a+"); fwrite($file," whatever i want written"); fclose($file); [/code] but nothing is being written to the file. the text files are in the same place as the php pages. does … Web Development file-system php | |
Hi frnds.. Mouse moving with background image...i dont know how do it...plz give some suggestions...the theme should be image... ex:[B]NDTV.com[/B]..just check this website.. Thanks in advance... Web Development php | |
Hi, there, I need help with the connection string . An error saying 'Object reference not set to an instance of an object.' Can be seen when i make the system to run. It effects the code below: [code][B]Dim str As String = ConfigurationManager.ConnectionStrings("CourierSystemConnectionString").ConnectionString[/B] Partial Class _Default Inherits System.Web.UI.Page [B]Dim … | |
What I require is to replace \/:"?<*>| with a space. I have done similar statements before but I have complete brain freeze at the moment. Hoping one of you can jog my memory. Always hated regex expressions never understood the logic behind them minus the A-Z and 0-9 and then … | |
Hi guys, I'm intending to create an online forum/blog application. An application almost similar to 'daniweb' forums. My question is, what sever set-up is the most suitable for this i.e asp.net (c#, vb), php-mysql, asp-java or any other. Please advice also on how to approach the coding and would even … ![]() | |
As ASP.NET replacing traditional languages like JSP,PHP In remote future is it also going to have some features available in artificial intelligence languages like LISP? If yes will it be called APLIS.NET ? |
The End.