17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for DARK_BYTE

Hi I have to build the like of a commercial website for my project and all was going well until I had to try to insert images in a SQL database ; I tried to modify some code that I found online but it is not working. The idea is …

Web Development php
Member Avatar for zinnqu
0
113
Member Avatar for dasatti

Hi, I need database for implementing dropdowns for Countries than based on selected country the States/Proviences dropdown and then the cities dropdown on the bases of selected State/Provience for all the countries in the world. I hop you understand what I need to implement. Can any body please provide me …

Web Development php
Member Avatar for kireol
0
88
Member Avatar for venus_me11

Can you please help me how to loop a textbox for example, I have 10 checkboxes and I check only 2 of them. If I click the submit button, the number of times I check a checkbox should be the number of textboxes to display.. so I check 2 checkboxes …

Web Development php
Member Avatar for venus_me11
0
103
Member Avatar for tustind

I apologize in advance for this being quite a long post... but, any help is great! I have a website (coded in PHP) which publishes content provided by users in a revenue sharing model. We pay each contributor a certain amount for every 1,000 "views" that their articles get. In …

Web Development api google-api php
Member Avatar for FlashCreations
0
217
Member Avatar for love_dude1984

hi.. im using a grid with a template field which contains a button.i just want to know how can i retrive a value from a 2nd cell of the same row... for ex. my grid contains 5 columns.the last col is a template field with a button. ther are say …

Web Development asp.net
Member Avatar for love_dude1984
0
131
Member Avatar for thebluestar

[CODE] <html> <head> <script type="text/javascript"> function check() { var val = document.myForm.content.value; if (val.length <= 10) { document.getElementById('numC').value = val.length; //out.value = val.length; } else document.write("Please enter the text in range of 10 characters!"); return false; } </script> </head> <body> <form name="myForm"> Type something here: <input type"textbox" value="" name="content" onchange …

Web Development javascript
Member Avatar for almostbob
0
125
Member Avatar for ryy705

Hello, Does anyone know what the "Z" stands for? 2009-12-26T06:00:00.000Z

Web Development php
Member Avatar for ryy705
0
123
Member Avatar for takeshi

hi.. i'll ask some question regarding my system login part.. This is my databasae connection.. [CODE] <? include("constants.php"); class MySQLDB { var $connection; //The MySQL database connection function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error()); mysql_select_db(DB_NAME, $this->connection) or die(mysql_error()); function confirmUserPass($username, $password){ /* …

Web Development php
Member Avatar for takeshi
0
134
Member Avatar for 7akimz

this is my php code [CODE]extract($_POST); $doc = new DOMDocument; $doc->load('../order1.xml'); $laptops = $doc->documentElement; foreach($laptops as $laptop){ if($list==$laptop->name) { $name1 = $laptop->name; $oldnam = $laptop->removeChild($name1); $olddetails=$laptop->removeChild($laptop->details); $oldprice=$laptops->removeChild($laptop->price); $name1 = $laptops->getElementsByTagName('name')->item(0); $oldname = $laptops->removeChild($name1); }} $doc->save("../order2.xml");[/CODE] this is my xml [CODE]<?xml version="1.0"?> <?xml-stylesheet type = "text/xsl" href = "input.xsl"?> <products> <laptop> …

Web Development html-css php xml
Member Avatar for Atli
0
154
Member Avatar for thebluestar

[code] <html> <head> <title>Nhung rac roi ko hieu</title> <script type="text/javascript"> function getvalue(list) { while(list.options.length) list.options[list.selectedIndex].value=null; var value = list.options[list.selectedIndex].value; document.write(value); document.bgColor = value; } </script> </head> <body bgColor="lavender"> Here is the list for you to Change the bgColor! <br/> <select name="list1" onchange="getvalue(this)"> <option value="green">Green</option> <option value="orange">Orange</option> <option value="yellow">Yellow</option> <option value="pink">Pink</option> …

Web Development javascript
Member Avatar for thebluestar
0
4K
Member Avatar for tunde011

[CODE]$filter = $HTTP_POST_VARS['att']; $result = mysql_query("SELECT * FROM postingbob WHERE category ='{$filter}' ")or die(mysql_error()); [/CODE] That's my php code which basically takes values from 'att' in my html form [CODE]<div class="vx_two" style="float:right"> <select id="two" title="Select a category" class="pinkselect" name="att"> <option value="Addictions">Sort By Category</option> <option value="Addictions">Default</option> <option value="Addictions">Addictions</option> <option value="Animals">Animals</option> <option …

Web Development html-amp html-css legal php
Member Avatar for SKANK!!!!!
0
109
Member Avatar for gold2040

Hi people I have a basic shopping cart here, taken from a book "Build Your Own Database Driven Web Site Using PHP & MySQL" basic catalogue [CODE]<?php session_start(); if (!isset($_SESSION['cart'])) { $_SESSION['cart'] = array(); } if (isset($_GET['buy'])) { // Add item to the end of the $_SESSION['cart'] array $_SESSION['cart'][] = …

Web Development email php
Member Avatar for SKANK!!!!!
0
135
Member Avatar for accountholder

I want insert some rows into mysql, each row shold be like this: [code] <input name="code[]" value="{code item dari data mysql}" /> <input name="name[]" value="{nama dari data mysql}" /> <input name="hrg[]" value="{harga dr mysql}" /> <input name="qty[]" value="{qty diinput sendiri}" /> <input name="subt[]" value="{autocalculated saat mengisi qty}" /> [/code] The …

Web Development php
Member Avatar for accountholder
0
154
Member Avatar for ryan1987

hi i have a html page with a form. you enter information into the form then have a choice of 2 buttons. depending on the button you press you get taken to a different page. the php page commits the data you put into he form to the database then …

Web Development html-css php
Member Avatar for sDJh
0
128
Member Avatar for Stefano Mtangoo

Hi all, I just fired Mandriva 2010 from my external HDD. I need to run PHP IDE and PHP/MySQL server running. I'm new to Linux so I need guide from you guys Thanks

Web Development ide php
Member Avatar for Stefano Mtangoo
0
68
Member Avatar for ryan1987

hi i want to do validation on two textboxes on my website i am creating. i want to make sure something is entered in each box before the user can proceed. the two textboxes are called teammanager and teamname and are in the form called addteam. the code i have …

Web Development javascript
Member Avatar for Graphix
-1
81
Member Avatar for madristaa

Hello friends, I have a very minor error, but i am not able to figure out which one is that. I have a simple form page and it goes to the another page and insert the values in database. But the thing is it inserts multiple rows in the database. …

Web Development php
Member Avatar for accountholder
0
87
Member Avatar for kanuri1

hi frnds, i had gota problem, i get the date in mm/dd/yyyy format only........... when iam accessing date from database in dd/mm/yyyy format itg gets error.. the error is as "Arithmetic overflow error converting expression to data type datetime." here my code is given below [code] <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" …

Web Development asp.net vb.net
Member Avatar for Oxiegen
0
283
Member Avatar for kanuri1

hi frnds, when iam accessing the date ,,,it willshow both date and aswell as default time. iam only accessing the date,,,,, here my coding is given below........ [code] <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1" Style="z-index: 103; left: 288px; position: absolute; top: 256px" AutoGenerateColumns="False"> <RowStyle BackColor="White" ForeColor="#330099" /> …

Web Development asp.net vb.net
Member Avatar for mail2saion
0
94
Member Avatar for itisnot_me

is it possible to have php code within jquery or do i have to use ajax to grab the values. ex of what i was trying [CODE] function blah() { //Creates the name tag $("#newitem").append("<tr><td><fieldset><legend><select name='produce'><option>--Select--</option><?=produce();?> </select></legend><table width='200'><tr><td>Ammount</td><td>On Hand</td><td>Cost</td></tr><tr id='txtHint'></tr>"); } [/CODE] as you can see that i have a …

Web Development javascript javascript-jquery php
Member Avatar for itisnot_me
0
73
Member Avatar for Carrots

Hi, I have a web site. On index.php I have a HTML link to admin/admincp.php By simply adding a htaccess file to the directory 'admin', will the admin directory and it's contents be fully protected? I only want it to be possible for me to access mysite.com/admin/admincp.php, because I am …

Web Development php
Member Avatar for Carrots
0
143
Member Avatar for fawkman

Hi Guys I am working on a php page that allows the user to upload files to thei proile. I managed to fina an open source upload class. Currently I have the code uploading the file to an images folder on the web server and that file is renamed to …

Web Development open-source php session web-server
Member Avatar for fawkman
0
129
Member Avatar for handyman_uk

Hi everyone i am looking for some help with a little java script i am no programmer so i need alot of help i have a marquee tag on my page that slides in some text from right to left once and the stops and remains on the screen have …

Web Development javascript
Member Avatar for handyman_uk
0
121
Member Avatar for imclumsy

Hi I am new to javascript and I am trying to get rid of an object expected error. Here is the line I'm getting an error at [code] <td></td><td></td><td align="center">To print this quote click <a href="/broker/OfferSummary.asp?QuoteKey=<%=vQuoteKey%>" target="blank" onChange="enablePRINT()" checked = "checked"> HERE.</a></td> [/code] here is the function enablePRINT() [code] function …

Web Development javascript
Member Avatar for imclumsy
0
115
Member Avatar for veledrom

Hi, Why this code doesn't work? All I want to do is removing all the white spaces. JavaScript [code] function validateForm(){ var postcode1 = (document.form1.textPostcode1.value).replace(/^\s*|\s*$/g, ""); if (postcode1 == "") { alert ("ERROR"); } else { alert ("CORRECT"); } } [/code] HTML [code] <form name="form1" action="save.php" method="POST" onSubmit="return validateForm()"> POSTCODE: …

Web Development javascript
Member Avatar for veledrom
0
76
Member Avatar for GReddy4u

If a mod comes across this thread feel free to delete it, I've re-posted it in the html forum since it has more to do with html, although it does deal with js as well. joshsonunionsquare dot com/index1.php I just added a 3rd button on the main section titled 'Photos' …

Web Development gui javascript
0
80
Member Avatar for TonyG_cyprus

[B]Hi guys[/B] I'm fairly new to php but learning fast. Here's my problem. I have the code below in a website I made for my local pub, it works fine, but is ther a way to dynamically add another row to the table when the number of records displayed is …

Web Development html-css php web-server
Member Avatar for TonyG_cyprus
0
131
Member Avatar for ayesha789

[CODE=php]<strong><p align="center">Air Conditioner Data Update</p></strong><br> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="onm"; // Database name $tbl_name="sims_ac"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $a=$_REQUEST['a']; //Its getting value from previoes page echo …

Web Development php
Member Avatar for hemgoyal_1990
0
218
Member Avatar for xylude

I am having trouble getting my if/elses to do what they should. It's probably something dumb that I'm overlooking. Can anyone help? [code] if(isset($_POST['homePageReg_submit'])) { $db = new connectDB(); $db->username = ""; $db->password = ""; $db->hostName = ""; $db->dbName = ""; $db->connect(); $rf_username = $_POST['homePageReg_username']; $rf_email = $_POST['homePageReg_email']; $rf_validateEmail = …

Web Development php
Member Avatar for ShawnCplus
0
85
Member Avatar for dan_ord

Hi, I would like to add discount to an order, but the tricky bit for me is the following: **Example** 1 photo = £15.00 But for every 3 photos i want to subtract £3 and for every 3 photos after that another £3 off the total order So 3 photos …

Web Development php
Member Avatar for kireol
0
85
Member Avatar for Kligham

Hi, I'm wondering what you all have got out there. I know you have the following: \t => tab \n => new line What do you have more? Anyone got a link to a webpage or a word that I could search for in google to get a list for …

Web Development php
Member Avatar for Kligham
0
114
Member Avatar for ayesha789

This code is not getting values when I press update. Its showing the values from Db in fields. But at the time of update whrere I SET Values it gets null values. I am using name of input as acmake[] and then using for loop but its not working. [CODE=php]<strong>Update …

Web Development php
Member Avatar for cwarn23
0
179
Member Avatar for chupinette

Hello all :) Well, im trying to display a list of categories from values fetched from my database. I have a class called CategoryList which has the function initialise as below: GetCategory actually uses PDOStatement::FetchAll [CODE] public function init() { $this->mCategory = Catalog::GetCategory(); print_r($this->mCategory); } [/CODE] Then i have my …

Web Development php
Member Avatar for chupinette
0
82
Member Avatar for kanuri1

hi iam using calender along with javascript in asp.net. here the problen is iam getting in mm/dd/yyyy format ,,,,,but i wants dd/mm/yyyy format so please give me the code, here my code of calender (datepicker) as below [CODE]Imports System.Text Namespace VbNetTest Partial Class DatePicker Inherits System.Web.UI.Page #Region " Web Form …

Web Development asp.net vb.net
Member Avatar for mshravs
0
101
Member Avatar for moerpheus

Hi guys, I use wamp for development, i kinda use it for multiple projects development! I have one problem, one site cannot remove session (cant destroy sessions) i dnt know why!... When I log out from other sites in my server can destroy all session variables (I can understand that!) …

Web Development php session
Member Avatar for moerpheus
0
82
Member Avatar for avirag

I have an application in which reads the system date and if I increase the system date by 1year ,then the application expires and stops working....... I have a javascript file in which functions for this expiration period..... Kindly tell me how can I modify this code so that no …

Web Development javascript
Member Avatar for avirag
0
161
Member Avatar for web3

I made little javascript bbcode editor on my website. How to display that code from mysql? Or how to save in mysql as html that code?

Web Development php
Member Avatar for diafol
0
117
Member Avatar for Stefano Mtangoo

Where is best JSP tutoriall, at least best for you? I will appreciate also downloadable for offline use. I'm extremely noob to JSP but I know some java

Web Development java-jsp
Member Avatar for peter_budo
0
120
Member Avatar for solway

Hi guys First time posting here. Have been enjoying all the resources available to us, very helpful. My problem: Recently started learning css / java - i have a web page with an iframe on the index pages within a div tag, which then loads all other pages into this …

Web Development html-css javascript web-browser
Member Avatar for Gianni^^
0
285
Member Avatar for dima shawahneh

hello every one im trying to send Email using ASP.NET with C# but when recieved it is marked as spam this is a problem... i searched alot and almost i put every thing to avoid marking my emails as spam..but all didn't work this is the piece of code i …

Web Development asp.net regex
Member Avatar for dima shawahneh
0
930
Member Avatar for Kligham

Hi, I was wondering how you can attach everything from a html source, so all the spaces, all the tabs, newlines are gone and everything is glued togheter? I tried with implode, but that doesn't do anything because I can't get rid of the spaces, tabs, newlines etc. Is there …

Web Development html-css php
Member Avatar for Kligham
0
88
Member Avatar for emhmk1

Hi again, i have got a site that calls 5 different tables on the database and they all have a date field, when calling and using the while loop all the $rows[] so to speak are named differently. The problem is, i have this code to change the date layout …

Web Development php
Member Avatar for sanjaypandit
0
99
Member Avatar for Alberto99

Hi, this is my first post to the forum. I am trying to use HTML Mime Mail, a class written by Richard Heyes. I use the new class in this program: [CODE]<?php require_once("/htdocs/htmlMimeMail5/htmlMimeMail5.php"); $mail = new htmlMimemail5(); $mail->setFrom("example@yahoo.com"); $mail->setReturnPath("example@yahoo.com"); $mail->setSubject("Test HTML Mime Mail"); $mail->setText("This is the body of the test …

Web Development html-css php
Member Avatar for Alberto99
0
335
Member Avatar for Leandro-AL

Hello, I am trying to store in an array the content of <tr> elements in a page. A sample of the page's code looks like this: [CODE]7E7"><img src="inxclus/flags/ES.gif"></td> </tr> <tr> <td height=20 bgcolor="#FFFFFF"><b>asdsdsdf</b></i></td> <td bgcolor="#FFFFFF"><a href="./asdf.php?pid=10460">asdsdsdf</a></td> <td bgcolor="#FFFFFF">asdfasdf</td> <td align="center" bgcolor="#FFFFFF"> <img src="img/note.png"></td> <td align="center" bgcolor="#FFFFFF"><img src="inxclus/flags/ES.gif"></td> </tr> <tr> <td …

Web Development php
Member Avatar for Leandro-AL
0
92
Member Avatar for supuser

Undefined Variable record: (in a path)/filename.php $sql= "select * from demo table"; $handler=mysql_query($sql); while($data=mysql_fetch_assoc($handler)){ $record[]=$data } <?php for($i=0;$i<count($record);$i++) ?>

Web Development php
Member Avatar for rajabhaskar525
0
80
Member Avatar for lifeworks

Hi Ive been using some httpRequests but have gotten tired of writing the 'preparation code' for every request... so I thought I'd make a function that accepted a URL, and a list of parameters and would return the responseText variable... But what seems to happen is that my other code …

Web Development javascript
Member Avatar for lifeworks
0
81
Member Avatar for jonow

I am using [URL="http://musicplayer.sourceforge.net/"]XSPF Web Music Player[/URL] slim, and whenever I put it into a web page and play it using Google Chrome or Safari the song starts playing twice. When i press the pause button one instance of the song keeps playing while the other keep going without any …

Web Development flash javascript
Member Avatar for jonow
0
302
Member Avatar for kripssmart

Hi, I have been writing a PHP code. As I couldn't execute it locally (installation issue), I moved it to my server as a '.php' file. I haven't executed or run a php file in server before. Can anyone please say me how I can view the output of my …

Web Development php
Member Avatar for kripssmart
0
114
Member Avatar for whisper_101

Hi Guys I have been working on an Automatic Email Function. The code returns two different email addresses which are used to send emails to. The problem is - in second email sent the Body of the text is repeated twice i.e. In the First Email Sent: Welcome to the …

Web Development asp email
Member Avatar for oluwa4real37
0
192
Member Avatar for tunde011

[code=php] <?php include 'config.php'; include 'opendb.php'; $result = mysql_query("SELECT * FROM 888db ORDER BY id") or die(mysql_error()); echo "<table border='0'>"; echo "<div id='bodyframe'>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row …

Web Development mysql perl php
Member Avatar for me655321
0
372

The End.