17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ckdoublenecks

I'm trying to determine number of days difference between the due duedate and current date and really need help. [CODE]<?php mysql_connect("localhost", "root", ""); mysql_select_db(numbersdb) or die("Unable to select database"); $query = "SELECT taxrate FROM numbdata" ; $result = mysql_fetch_assoc(mysql_query($query)); $taxrate = $result['taxrate']; mysql_connect("localhost", "root", ""); mysql_select_db(oodb) or die("Unable to select …

Web Development php
Member Avatar for ckdoublenecks
0
89
Member Avatar for thijscream

hey people, i have the following problem, i'm setting up a webshop with over 2k items and every 6months the prices are changing(wines) so i was wondering how to import an xml file into a mysql database without having to go in phpmyadmin. this because i don't want the people …

Member Avatar for jonnysmiths
0
657
Member Avatar for ivan3510

HI! I have a php page. There are music names (they are in array). I want to make a search script. This script must find what someone writes. But if user made mistake while writing, it must find similar music names. Is this possible, or I must use mysql?

Web Development php
Member Avatar for ivan3510
0
123
Member Avatar for cliffcc

When i do refresh in php, the data in iframe become blank. How i still get the search results in iframe after press "refresh" button? Thanks! In the iframe, it just like the search information php [CODE] <iframe width="650" height="400" frameborder="0" scrolling="yes" copyhistory="yes" name="Shopping" src="http://localhost/search.php" ></iframe> [/CODE]

Web Development php
Member Avatar for cliffcc
0
116
Member Avatar for feoperro

Hi, I'm currently looking at password hashing and from what I've read so far, it seems pretty pointless. I read this [URL="http://phpsec.org/articles/2005/password-hashing.html"]article[/URL] which recommends using MD5 or SHA-1, however I Googled for decrypters and found them witin the first 3 results on Google. I don't quite understand the purpose of …

Web Development encryption php
Member Avatar for feoperro
0
303
Member Avatar for TheBadger

Hey I have a button that when clicked add some pictureboxes and labels on a panel named "hold" Now when I change some values and reclick this button I need the old controls to be removed before drawing new ones. So I added this code at the start of the …

Web Development asp.net
Member Avatar for Mitja Bonca
0
131
Member Avatar for jimmyo88

Hello everyone. I am trying to write a quiz for a site. Questions are in multiple choice, true/false, fill in the blank etc. The example questions i have can be seen below. I'm trying to plan how am I going to code this. I was thinking of having a table …

Web Development audio php
Member Avatar for diafol
0
447
Member Avatar for rpv_sen

Hi Friends I have pasted the code below which i was used in my project. But i am getting mysql_fetch_array() error. For your more information i have attached the screen shot of the error Pls give me solution [CODE]<?php // Inialize session session_start(); include("../config.php"); // Check, if username session is …

Web Development mysql php session
Member Avatar for rpv_sen
0
370
Member Avatar for pro_learner

In many job vacancies about software engineers,i have seen programming with PHP is a qualification.But as i know PHP is a server side scripting language.Therefore i want to know why they are looking about PHP as other programming languages like c,c++,java & etc.Please explain me......

Web Development php
Member Avatar for pro_learner
0
93
Member Avatar for MrCapuchino

Hello, I have two Javascript functions to set and retrieve a cookie: [code] function setCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function getCookie(name) { var nameEQ = name + "="; …

Web Development javascript
Member Avatar for MrCapuchino
0
11K
Member Avatar for ivan3510

I need help! Here's script: [CODE] <?php date_default_timezone_set('Europe/Paris'); $time="1303889758"; echo $time."<br>"; $convert=date("G:i:s d. n. Y. ",$time); //convert $time to our date: output is 9:35:58 27. 4. 2011. echo $convert."<br>"; $con2=mktime($convert); //convert converted time to unix: doesn't work echo $con2; ?> [/CODE] I have two script. One script write the time …

Web Development php unix
Member Avatar for ivan3510
0
104
Member Avatar for rrlogu

Hi, I have the following code in test.php file <form name=f1 method=get action="test.php"> <textarea name="question"></textarea> <input type="submit" value="Submit"> </form> If I enter "sample text" its working fine with [url]http://www.example.com/test.php?question=sample+text[/url] But if I enter "Create a view that does not contain the" its throwing the following error message with [url]http://www.example.com/test.php?question=Create+a+view+that+does+not+contain+the[/url] [B]Internal …

Web Development php
Member Avatar for rrlogu
0
278
Member Avatar for phpuser

Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. …

Web Development javascript php session
Member Avatar for Somnathpawar
0
5K
Member Avatar for cms271828

Hi, I've just uploaded a very simple web app that uses hibernate via a war file to my webserver: [URL="http://www.colin-java.co.uk/BANK"]http://www.colin-java.co.uk/BANK[/URL] The first couple of times I loaded the page above, it was fine, and it correctly displayed some of the contents of the User (MySQL) table. But now when I …

Web Development apache java-jsp session
Member Avatar for javaAddict
0
137
Member Avatar for benjaminFowl87

I have a problem with the val function it is unable to get the value of a field once I have type text into it, this only occurs when the form is in a jQuery popup box that has a form. According to my inspector, it says that the element …

Web Development api javascript javascript-jquery
Member Avatar for benjaminFowl87
0
3K
Member Avatar for jacob21

Hi, I am fetching data from the database.but I want to fetch it in proper format on PHP page. Suppose i insert some data like. 1)chair 2)bed 3)sofa n when i fetch it comes like that 1)chair2)bed3)sofa But i want to do in proper format. 1)chair 2)bed 3)sofa Need suggestion?

Web Development php sql
Member Avatar for jacob21
0
154
Member Avatar for jdavenport

In the javaScript function below, is there anything I can add to the window.open so that the parameters passed in the URL do NOT show in the window that is opened? It is okay if the script path shows, I just need to hide the parameters. If that is not …

Web Development javascript session
Member Avatar for Airshow
0
6K
Member Avatar for serdas

hi, i am not a coder and trying to make this work [CODE]var body = 'Reading Connect JS documentation'; FB.api('/me/feed', 'post', { message: body }, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } });[/CODE] to make it work above code …

Web Development api php
Member Avatar for tomato.pgn
0
422
Member Avatar for rhuffman8

I am trying to write code for a guestbook on my website that takes the input from a input text field and a textarea, writes the information to a .txt file and then displays the contents of the .txt file on the screen. This is the code I have so …

Web Development php
Member Avatar for rhuffman8
0
1K
Member Avatar for samsambm

Hello , I'm trying to split a string using preg_split() ( since split ) is deprected... I'm trying to split it using '=' sign and to get the GETS variable from a url but I'm getting the error : "Warning: preg_split() [function.preg-split]: No ending delimiter '=' found in C:" The …

Web Development php
Member Avatar for samsambm
0
182
Member Avatar for veledrom

Hi, Code below replaces selected number with an URL given by the user. It doesn't work the way it supposed to do. If I select second 2 to make it an URL, it makes first 2 an URL instead. How do I solve this problem? Thanks in advance [CODE]<script language="JavaScript"> …

Web Development javascript
Member Avatar for veledrom
0
95
Member Avatar for rhuffman8

I am trying to make a page, similar to DW, with a menu bar at the top that loads specific content into the body when the links in the menu bar are clicked. I have read a few things about how to do this using javascript but I cannot seem …

Web Development display javascript seo
Member Avatar for rhuffman8
0
533
Member Avatar for Stefano Mtangoo

Hi, I'm making a custom user management class that inherits from DBManager class. The problem I have so far is executing queries using mysqli prepared statements. DB connects fine but then prepare statement fails. I have mysqli object as an attribute that is shared in the class. I'm new with …

Web Development mysql php
Member Avatar for hielo
0
148
Member Avatar for kimlong008

Help me make tab menu in data list as Pic : [img]http://2.bp.blogspot.com/-Q2S0vos1VpM/TaQd9VfaXcI/AAAAAAAAAG0/4NgIMdJ7H4o/s1600/gridview.jpg[/img] when I click mouse to button Which get true ID table, How do make it ? Can You sent to me link web or document ? :) Thank You All !

Web Development asp.net
Member Avatar for aspproject
0
90
Member Avatar for Nitin Daphale

I have used AutoGenerateDeleteButton="true" property of the GridView, so that am getting delete btn on every row. In order to avoid an exception('fired event RowDeleting which wasn't handled ') I am removing that row programmaticaly as follows [CODE] protected void gd_OnRowDeleting(object sender, GridViewDeleteEventArgs e) { dt_TestSubjects.Rows.RemoveAt(e.RowIndex); gd_Subjects.DataSource = dt_TestSubjects; gd_Subjects.DataBind(); …

Web Development asp.net
Member Avatar for aspproject
0
92
Member Avatar for rpv_sen

Hi Friends i am having one master table for category which contain 7 fields, i am having sitename as a table which contain 8 fields, if i create [B]newsite[/B] name then it has to copy all the fields from master table in addition to that it has to display the …

Web Development mysql php
Member Avatar for rpv_sen
0
172
Member Avatar for karthik_ppts

Hi Frendz, How to show all markers on google maps which are in different places?

Web Development google php seo
Member Avatar for karthik_ppts
0
92
Member Avatar for Nybuler

Hi all, i'm building a simple date input with php using drop down list box the problem i faced is "leap year" how do i display 29 day in the drop down list box while user selected a leap year if user make an option on day first then only …

Web Development php
Member Avatar for Nybuler
0
493
Member Avatar for klemme

Hi, I have this code that adjusts the position of the subjects and the pages in my site. This is working where the value of the radio button = 1 (which is = showing, in the database - And 0 = Not showing) And I am talking about pages for …

Web Development mysql php
Member Avatar for klemme
0
223
Member Avatar for bluehangook629

Hey guys, I have simple menu item that opens a form upon click. The problem is menu item opens a new instance of the same form every time I click on it. I want it so when the form assigned to the menu item is open then the code will …

Web Development asp.net
Member Avatar for bluehangook629
0
121
Member Avatar for LRNPHP

Hi Everyone, I'm looking for a nice menu, I have something like this in mind. [url]http://www.andrewsellick.com/examples/tabslideV2/[/url] I just need 2 menu's. One on the left and the other on the right. When I move my mouse over it it should drop down with a short description. Any help or pointers …

Web Development javascript
Member Avatar for newbieJS
0
127
Member Avatar for 68thorby68

I have read through loads of comments about how and why object expected can be reported, but I think my problem is that my javascript and calls are rubbish. I want to build a simple function that, if I de-select the first check box, all other checkboxes are de=seleceted, or …

Web Development javascript
Member Avatar for 68thorby68
0
120
Member Avatar for XerX

Hello. This is my program: [CODE]<html> <head> <script type="text/javascript"> function check() { if (document.getElementById("age").value!=1) { alert("error") } } </script> </head> <body> <form> Age: <input type="text" id="age" size="30"><br /> Name: <input type="text" id="name" size="30"><br /> <input type="button" value="Check" onclick=check()> </form> </body> </html>[/CODE] and my question is how to make it display …

Web Development javascript
Member Avatar for XerX
0
142
Member Avatar for johndohmen1963

Hi Hope thet someone can help me with folowing I have a mini event calender but i want to show te even into a popup but i can't fiux it i have here the code [CODE]echo "><a href='".$_SERVER['PHP_SELF']."?month=".$monthstring."&day=".$daystring."&year=".$year."&v=true' onclick='Popup.showModal('modal');return false;'>".$i."</a></td>"; } echo "</tr>"; ?> </table> <div id="modal" style="border:3px solid black; …

Web Development php
Member Avatar for tomato.pgn
0
100
Member Avatar for msqueen082

hello I wrote code for a scramble word game and I am trying to set focus everytimge I click on check button..I've got it so it will set focus when I start game, but whenever I put put setFocus() on the onclick of the button it will not work... is …

Web Development javascript
Member Avatar for msqueen082
0
116
Member Avatar for 68thorby68

I have got myself in a bit of a mess creating a dynamic form and not knowing how to get at the resulting data. I am creating a dynamic form from a mysql database, in order to allow the user to edit and re-store their data. Database is quite simple: …

Web Development php
Member Avatar for 68thorby68
0
125
Member Avatar for sunny124

Hi, I have a checkbox where if a user clicks it, the address fields gets removed and if he clicks it again, it should add those address fields back. I can get it to remove it successfully but when I try to add those fields back, I get [object Object] …

Web Development javascript javascript-jquery
Member Avatar for sunny124
0
120
Member Avatar for Sarama2030

cannot load type"projectname.webform". what could be the problem. should i be testing my app using asp.net's development server or ISS.

Web Development asp asp.net
Member Avatar for Sarama2030
0
80
Member Avatar for rajdevsohail

i actually want a user to select a file to upload to my webspace , and while uploading it is renamed and at end it will display a url to the user which contains php variables ( (depends on the file name) .. i have made a form (for the …

Web Development php
Member Avatar for rajdevsohail
0
250
Member Avatar for Killer.bee

hello i want help to design a script for banning ip's and also range of ip's.... Hope that somebody may come out with a solution to do this ....

Web Development php
Member Avatar for tomato.pgn
0
120
Member Avatar for flynismo

I have resolved a couple issues on my site thanks to you all, and hoping that you can come to my rescue one last time, because I am at wit's end trying to figure this one out. I have a shopping list on each page. Normal grocery store items; users …

Web Development mysql php
Member Avatar for hielo
0
155
Member Avatar for turt2live

Hello, In my code I am getting this error: [CODE]Warning: mysql_connect() [function.mysql-connect]: User turt2liv_demo already has more than 'max_user_connections' active connections in /home/turt2liv/public_html/demo/jamond_website/class.php on line 11[/CODE] That method looks like this: [CODE]//Constructor function __construct($debug){ if(!$debug){ $debug=0; } mysql_connect("localhost","turt2liv_demo","demoacc") or die("Connection Error: ".mysql_error()); mysql_select_db("turt2liv_demo_jamond_website") or die("Selection Error: ".mysql_error()); error_reporting($debug); date_default_timezone_set("America/Edmonton"); if($this->isLoggedIn()){ …

Web Development audio php
Member Avatar for turt2live
0
115
Member Avatar for nats01282

Hello i am creating a small forum and having trouble with the user sign up form. i have the start of a sign up form on the index page then that jumps to the sign up page with more info, e.g... index.php [CODE] <form action="signup.php" method="post"> name: <input type="text" name="name" …

Web Development php
Member Avatar for nats01282
0
98
Member Avatar for turpentyne

I have the paginated results page below, intended to show the results from a previous search page that pulls items from the database and also passes the _GET to this page. When I first submit my search, it works. But when I click on the paginated pages below, It reloads …

Web Development php ui-ux
Member Avatar for turpentyne
0
129
Member Avatar for klemme

Looking for an answer about how I can use relations in my DB, when a link is clicked. I have the main navigation in the top of the page, the table is called:"SUBJECTS", primary key is ID. I also have a local navigation in the left side of the page. …

Web Development php sql web-design
Member Avatar for madCoder
0
163
Member Avatar for kimlong008

If I want to make a file connect SQL by file C# which I don't use connect in web.config But I can't call 2 class because when file aspx and Cs they have call [CODE]public partial class _Default : System.Web.UI.Page[/CODE] Help me create file connect SQL in Cs use all …

Web Development asp.net c# file-system
Member Avatar for kimlong008
0
229
Member Avatar for feoperro

Hi there, I'm trying to do a Username validation with JQuery but I'm not sure how to get a "TRUE" from the first section of code before going to the next section which is an ajax call to the backend. Below is my code. [CODE] $(document).ready(function() { $("#username").change(function() { var …

Web Development javascript javascript-jquery
Member Avatar for feoperro
0
265
Member Avatar for xiiopao

hi there im new to php and im currently building my website .,it's more like an online store and i would like my products to be listed in a gridview., i have a database and my only problem is how to display the images .., i've already displayed some info …

Web Development display image php
Member Avatar for xiiopao
0
542
Member Avatar for nizuya

[CODE]<a href="javascript:document.apply.submit()" >Submit</a>[/CODE] I use this all over my website. It works great every where but on one page. The error is document.apply.submit is not a function. I would include the code but the page really long. Anyone have any ideas what would cause this error?

Web Development javascript
Member Avatar for nizuya
0
93
Member Avatar for Barrett1

I just would like to know how to do this? Just like facebook! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam fermentum posuere arcu lobortis mattis. In eu nisl turpis. Praesent mi dui, dignissim et rhoncus nec, sodales vel sapien. In hac habitasse platea dictumst. Etiam quis felis vitae …

Web Development php
Member Avatar for ko ko
0
149

The End.