52,566 Archived Topics
Remove Filter ![]() | |
Hi all, I have a database which I would like to use to power an HTML list. I'm struggling to get the loop to print out more than one line. This is the script: [CODE] <?php $query = "SELECT * FROM `table` ORDER BY `year` ASC"; $resultID = mysql_query($query, $conn) … Web Development php | |
Here is my code,problem is i'm able to login even with wrong username and password. Can anybody tell wat is the mistake in my code.. [CODE] using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using MySql.Data.MySqlClient; … Web Development asp.net dataset mysql open-source | |
Hi, I am facing the parser error in the following line: [CODE]<td><select name="type"><option value=" ">select the type</option><option value="C" [B]"'.if(trim($_POST['ctype2'])=="C") echo "selected".'"[/B]>Calcium</option><option value="V">Vitamin</option></td> </tr> [/CODE] Error: Parse error: syntax error, unexpected T_IF in C:\xampp\htdocs\test.php on line 78 Web Development php | |
I am sure this must be very simple, but unforunately I can't figure it out. I have the following code which populates the dropdown lists from the database. This works fine. Now, when the user selects a particular employee name from the list, I want to get the Employee Id … | |
I am trying to add a data(string) to a url in javascript and pass to java controller. In server side i am using spring mvc. The javascript code below redirects to the save.htm with the data concatenated. I couldnt figure out how to catch. Is there any way to pass … Web Development javascript software-architecture spring-framework | |
Hi, I have been learning PHP/Mysql for only a few moths and am working on my own dynamic web-site. Stuck on what is probably very simple. User inputs name($name)in form. Table containing it has 15 fields - $name could be in any or none How do I put $name into … Web Development php | |
Hi Morning all, here I've code how to insert data into multiple tables in Sql Server using asp.net C# form but the data unable to enter ang got error, may anyone help fix it form me? because i've tried so many times already but still cannot, there is the code … Web Development asp asp.net c# mssql open-source | |
the view_count of the notes table will increment 2 times everytime i click the button that link into this page.. need help desperately.. thanks! [CODE]<?php ob_start(); $note_id=$_GET['note_id']; include 'fconnect.php'; if ($note_id!=null) { $query_ncount = "UPDATE notes SET view_count = (view_count+1) WHERE note_id = '$note_id'"; $result_ncount = mysql_query($query_ncount); if(!$result_ncount ){ die('invalid … | |
Hi can i ask for help pls. I have this xml values from a given xml file i wanted to retrieved it from there and when I was trying to retrieved it and echo it out it shows the correct value together with the decimal values. But when the i … | |
Hi I am getting uploaded image in text format. [B].txt[/B] need help & suggestions. [CODE] $email_from = "resume@ihmjobs.com"; // Who the email is from $email_subject = "Attached image"; // The Subject of the email $email_message = "Name : "; $email_message .= $_POST['name']."<br>"; $email_message .= "Message : ".$_POST['message']."<br>"; // Message that … | |
hello guys... I have an html page inwhich I collect some data using text boxes. Now in this page, I have button and I set the action attribute of [B]<form>[/B] a php script like this. [CODE] <form action="test.php" method="post"> ----- [/CODE] Now this does the job. But the problem is … Web Development php | |
i knew every thing about it in couple of days, and when i thought i finished the project (ASP project), i forgot about the deployment part and needed to use the database as local database (SQL server database file) the problem is i cant get the report wizard to connect … Web Development asp.net | |
i knew every thing about it in couple of days, and when i thought i finished the project (ASP project), i forgot about the deployment part and needed to use the database as local database (SQL server database file) the problem is i cant get the report wizard to connect … Web Development asp | |
i want this animation to start from the beginning but i dont know how to do it. im using scriptaculous framework. here is my animation: [url]http://silviadwomoh.com/loop/[/url] and here is my code: [CODE] <script type="text/javascript" language="javascript"> //fade div 1 new Effect.Fade('anim1', {duration: 1, from: 0, to: 1, afterFinish: function (one){ //after … Web Development javascript queue | |
Pls I need help on this validation script. Even after logout and without login, I can access the assigned webpage. What might be wrong?? [CODE]<?php //Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if(!isset($_SESSION['login']) xor (trim($_SESSION['login']) == '')) { header("location: login.php"); exit(); } ?>[/CODE] | |
I've been looking, and there seams to be a lack of Ron Paul (for president 2012) Wordpress Themes. So I think I'm going to have to make my own...but then I remembered I suck as design. So I was wondering if anyone might know of a good resource where I … Web Development php web-design wordpress | |
[CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!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"> <title>XYZ Travels Pvt Ltd.</title> <script type="text/javascript" language="javascript"> function a(){ var x = document.forms.frm1.UserID.value; var y = document.forms.frm1.Pass.value; if(x=="" || y=="") { alert("Required Field cannot be left Blank"); if(x!="") { document.forms.frm1.Pass.focus(); } else{document.forms.frm1.UserID.focus();} } … Web Development first-post html-css javascript | |
can anybody share, the best encryption and decryption technique in PHP. here i just found 3 ways. are that any better technique? [QUOTE][ICODE]<?php //1 $password = 'mothafucka'; $sSalt = '8*S&AsEc4qUs'; $sHash = hash( 'whirlpool', $password . $sSalt ); echo $sHash."<br><br>"; //2 $password = "palancau87"; $password = sha1($password); $password = md5($password); … Web Development encryption php | |
I need to make this code set "str" as "Recent" if the "str" got no value. Right now i have to use this: [CODE]<form> <select name="users" onChange="showUser(this.value)"> <option value="">Select album:</option> <option value="Recent">Somealbumname</option> </select> </form>[/CODE] but its really annoying to have to use the select, i want the code to load … Web Development javascript | |
Hi, Here is what I want to do: I already have a php login system and I want to integrate a private messaging system into it. Does anyone have any recommendations of Private Messaging scripts? Thanks so much, Max. Web Development php | |
Hi I am somewhat a noob when it comes to php and have stumbled on something I cannot see how to do. I have a script which plugs into joomla and extracts orders from redshop using direct mysql access. This means that the source code is all mine on my … Web Development php | |
I need autofill script but i dont know where to begin I have mysql databese table like this (records aprox. 400): id | product name | barcode | quantity | price ------------------------------------------------------------- 1 | procuct 1 | 0000001 | 21 | 12 2 | procuct 2 | 0000002 | 23 … Web Development javascript javascript-jquery json | |
Hi everyone, i want to make search on my website,the search is made through rss base. please guide me how i get rss websites through for my local search. i want to get product name and product price for the search result. Web Development xml | |
Hi Frendz, How to send free SMS to mobiles using php? I'm trying lot of codes but all is going to vein. Web Development php | |
Hi, Can anyone help me as to how I would handle recurring invoices in PHP I have it making invouices with a due date... but say I wanted to mark an invoice to auto invoice every month... how would the script work and what data is needed to do that? … Web Development php | |
Hi, I have a text file with content as [CODE]---------------------------- BEGIN REPORT: report1 r1a r1b END REPORT: report1 ---------------------------- BEGIN REPORT: report2 r2a r2b END REPORT: report2 ----------------------------- BEGIN REPORT: report3 r3a r3b END REPORT: report3 -----------------------------[/CODE] How can I read and Overwrite this text file such that "BEGIN REPORT: … Web Development php | |
Hi, I want to write ACL. The access groups and access tasks are arbitrary. That means that any group can be given any access and initially accesses and groups are unknown. Creating groups is easy but I have hit a wall on how do I create/Implement limiting the tasks. Example: … Web Development php software-architecture | |
I want to convert a binary value to a decimal value, but it seems to lengthy for me as I written the below ugly code, which is frusrating and constraining, any one with a short and nice code. [CODE]<html> <head> <script type="text/javascript"> function displayDate() { var a=document.getElementById("text").value //alert(a); var b=a.charAt(0); … Web Development javascript | |
Can anyone tell me why I keep getting a plain white screen after submitting my form? Here's the code (some of them are generated by dreamweaver and I don't think I have enough time to learn how to do it manually because I need this running in a few hours) … Web Development php | |
This is pretty basic guys but i really dont know how to do this. okay. i have to panels on my webpage. what i need to do is i need to hide panel.. i have this [CODE] <script runat = "server"> private void hidepanel() { pnl_Add.Visible = true; pnl_List.Visible = … Web Development asp.net | |
First of all i wanted to say hello to Daniweb community because this is my first thread here. I need to design a web site that clients can easily drag & drop pre-defined user controls and create a simple web site for themselves. Users will also upload their data to … Web Development asp asp.net database-design web-design | |
Hi friends... Am using a Gridview and whenever mousehover on the row of gridview am changing the color of row. now i want to change the color of row when i select the gridview row.. how to do it... plz help me ... [code] protected void GridViewStudentList_RowCreated(object sender, GridViewRowEventArgs e) … Web Development asp.net | |
Hi, I am new in ajax. I am using a calender in javascript.& also using ajax code for form validation n submission. but calender is not working if i use ajax Need suggestions. [CODE] <script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="requirement_validation.js"></script> <script type="text/javascript">jQuery(document).ready(function($) {$('a[rel*=facebox]').facebox() })</script> … Web Development html-css javascript javascript-jquery ![]() | |
Hi everyone, Please assist with this issue that I'm having. I am trying to create a simple web interface to allow me to send sms's from a browser window. I am using gammu ([url]http://wammu.eu/[/url]). I am able to execute the code below when using the php cli on the linux … Web Development apache php user-interface web-browser | |
Hi, I m using this javascript code. for form submission i am using ajax.The problem is date calender is not showing when i use ajax file. If i remove ajax file,its working fine. Need help as i am using ajax first time [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> … Web Development html-css javascript javascript-jquery php | |
I'm using PHP 5 and apache 2.2 on XP prof, but did not install zip extension during the initial php/apache installation. I have downloaded and extracted Pecl-5.16-win32zip package and extracted the contents (including php_zip.dll) to c:\PHP\ext. I have also amended the php.ini and included the line extension=php_zip.dll I have checked … | |
Hello I want to send xml values to a database I just created, here is the xml file <record> <name>tcpmux</name> <protocol>tcp</protocol> <xref type="person" data="Mark_Lottor"/> <description>TCP Port Service Multiplexer</description> <number>1</number> </record> <record> <name>tcpmux</name> <protocol>udp</protocol> <xref type="person" data="Mark_Lottor"/> <description>TCP Port Service Multiplexer</description> <number>1</number> </record> I've got 4 columns in my database:- ServiceName, … | |
Hello There Iam Sorry My problem Will take Time To Explain So Iam Sorry For That first thing that's my code in the index file [CODE]<?php $result = mysql_query("SELECT * FROM games"); while($row = mysql_fetch_array($result)) { echo "Game Name : <a href='GameDetails.php?id=$row[id]'>$row[name]</a><br/>"; echo "Genre : $row[genre]<br/>"; } ?>[/CODE] [COLOR="Red"]In The … Web Development php | |
Hello guys.. I have this website called jupiter.php. It's code ignitered. I want to put it in my friend's website called [url]www.planet.com[/url]. My website should be accessed like this: [url]www.planet.com/jupiter[/url]. Problem is, I don't know how to. Should I ask what programming language or web server my friend is using? … Web Development php web-server | |
For the website I'm working on, I've included a "search the site" section. Once the user searches a keyword or a phrase, the php processes all the content in the mysql database and prints out the title, content and a link to the page with the article containing that specific … | |
Hi all, I'm having trouble getting POST value from dynamically generated txtinput[] and MultiSelect since they form an array. I read so many articles but I get confuse.. a short form of my code is given below.. Pls help me with best way how I can get array values in … Web Development first-post javascript-jquery php ![]() | |
Hello I Need To Know how to Retrieve Random Data From A Table In Database i have a table called actiongames i need a code to retrieve random data from this table Web Development php | |
Hi all, i understand that php header needs calling before any output. i made a mistake and used it after an include which did output some html which gave the error. but when testing on localhost with exact same code the header location redirect worked fine with no error? any … Web Development php ![]() | |
hello friends may peace on you ! I have a little problem in my code.i want display the fetch value from db in a textfield after pressing load button.i am using ajax post method for it but cant figure it out what the problem.please help me ! Thanks, [B]Index.php[/B] [CODE] … Web Development javascript javascript-jquery | |
Hello, I am new to web development and PHP/JS. I am currently using JWPlayer to show video on our church website using an xml playlist and all is working fine but it is rather cumbersome to upload new videos/Mp3 files. Each time we want to add a new video or … | |
Hi All! I got a problem with one of my files where I can't upload a file to my database. I want to save the path in the db but it gives me an error and says the "Filename cannot be empty". In my .html [CODE] Upload a profile picture(50px … Web Development file-system php ![]() | |
hello i have a problem with the % sign in to the url links for example my url is [code]http://www.site.com/1411/The-trafic-is-increased-to-20%-this-year[/code] that % is used like a variable in browsers and is not clickable in IE 8 or it gives errors in others browsers! removing % is not an option because … | |
Hi all, I queried results form MySQL database using php and stored the results in a text file. Now i want to store the text file contents in a single string variable. I would be thankful if anyone could help me with this. Thanking you. Have a nice day. cheers, … |
The End.