39,326 Topics

Member Avatar for
Member Avatar for fmjnax

Hi all, I'm sorry if the thread title doesn't make much sense; I'm quite new to AJAX (well, to web programming as a whole. I'm more of a SQL/client-server developer). Anyway, I'm having some trouble getting some code to work. What I'm doing is I am dynamically loading a list …

Member Avatar for fmjnax
0
248
Member Avatar for jetlife76

Hi guys, i am currently working on a project that queries an inventory database through the use of radio buttons, for example; If the first button FOR THE Item(HAMMERS)is clicked, the output should be the name of the item, the number sold and the total profit(calculations) into a table. the …

Member Avatar for jetlife76
0
78
Member Avatar for Martin C++

Hello, I have a PHP page called summary.php and I m trying to make the jquery script to post piece of data when <select> is modified. This is my code atm [CODE=js] <script> $("select").change(function () { page_id=$(this).attr('id'); alert(page_id); $.post("#", {id:page_id}); }) .change(); </script> <?php if(isset($_POST['id'])){ die("YES!"); } echo $_POST['id']; ?> …

Member Avatar for Martin C++
0
204
Member Avatar for ibn_sumal

Hello guys I'm trying to do something very basic but can't figure it out so far. I have a form and just want to display [U]all the user's comments one after the other[/U] in the same page once they have submitted them. It does show a user's comment however when …

Member Avatar for ibn_sumal
0
2K
Member Avatar for jeevanism

I am not sure is this place to post this. may in JavaScript section. My requirement is that I have to disable user input like clicking menu links when some functionality in the website is going on . in better words, when user Upload a large file, it will show …

Member Avatar for StephNicolaou
0
69
Member Avatar for lastgame2007

<br /><b>Warning</b>: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. …

Member Avatar for diafol
0
91
Member Avatar for fredfletcher

Hello, I tried many different combinations to get this to work, but with no success. As always, I try my best and spend a lot of time in trying to get something to work before I ask for help on something. My question is, how can I pass parameter from …

Member Avatar for fredfletcher
0
161
Member Avatar for rich2710

Hello, I'm hoping if someone could help me with this, I don't think it's to complicated but I'm still having some problems. I have the following code which takes the keywords 'oxford' and 'oxfordshire' for $query and ultimately searches for items with these words in on eBay(UK). I have another …

Member Avatar for diafol
1
217
Member Avatar for emclondon

Hello guys, I am trying to learn working with Web services using PHP. I have found many methods to access and consume these services, but I've come to know Soap Client and cURL are the best way to do it. I decided to work on an API provided by a …

Member Avatar for diafol
0
299
Member Avatar for accra

hi, i get this error when i run my script [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\xampp\htdocs\autogh\admin\userindex\scripts\banner.php on line 13[/CODE] this is my mysql statement [CODE]$banners_num = "select * FROM banners WHERE DATE_ADD(todate, INTERVAL numDay DAY) > NOW() AND position='top_banner'"; [/CODE] Am trying to …

Member Avatar for accra
0
161
Member Avatar for danielbala

Hi.. I want to implement a program for identifying spam emails using an algorithm naive bayes in php.. How to implement this..can anyone help me.. Thx in Advance

Member Avatar for danielbala
0
79
Member Avatar for himanshu.1691

i type the following code.... it runs properly....data gets fetch but i am not able to display it in a textbox.... it simply remains blank....whereas i am able to fetch the data outside the form tags here is my code: here i can see name =himanshu outside the form but …

Member Avatar for emclondon
0
188
Member Avatar for Buppy

Hi, I have a PHP acript that generates csv files and then automatically forces downloading them. Before i have added this line - header("Content-type: application/csv; charset=UTF-8");. When opening file in editors like Notepad, every character shows fine, but when importing the csv into applications like MS Excel, it does not …

Member Avatar for pritaeas
0
56
Member Avatar for shielaolid

Hello there, anyone can help me about my problem, i want to display an error message when the user inputs invalid username and incorrect password. and i want to display it in the same form. im new in php. These are my codes: [CODE] <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $db=mysql_connect('localhost','root','') …

Member Avatar for shielaolid
0
7K
Member Avatar for super-duper

[CODE]<?php include('dbconnect.php'); Print "Database was found and connection was successfull!" $fname = $_POST['fname']; $lname = $_POST['lname']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zipcode']; $sql = "INSERT INTO `demoform` VALUES ('$fname', '$lname', '$address', '$city', '$state', '$zip')"; if(!mysql_query($sql)){ die('Error: ' . mysql_error()); } Print "Your information has …

Member Avatar for baig772
0
182
Member Avatar for AODfan

Issue I am coming across is that my calculation is not coming out correctly, it will display "0s" if nothing is entered, also it shows the previous entered data and then the newly entered info, but multiple times. It should only be showing the gravity multiplied by the weight entered. …

Member Avatar for veedeoo
0
107
Member Avatar for davy_yg

Firefox HTML Validator [CODE] Firefox HTML Validator: front-page.php Result: 75 errors / 23 warnings Info: W3c Online Validation line 43 column 20 - Error: document type does not allow element "div" here; assuming missing "body" start-tag line 56 column 15 - Error: ID "body" already defined line 47 column 14 …

Member Avatar for davy_yg
0
398
Member Avatar for super-duper

I'm trying to create a delete button that lets a user "delete" an entry from mysql database. I have a demo.php page, where my php connects to my database and inserts data into it. And I have a demo-form.php which is to display the form and when "submit" button is …

Member Avatar for vaultdweller123
0
827
Member Avatar for HasNor

Hi all, here i got a problem where i want to delete file uploaded..my script just remove from database but not remove from directory.. how can i delete from database and directory at a same time?? Please help me..

Member Avatar for HasNor
0
118
Member Avatar for Trizocy

Hello there I was wondering if anyone could help me with this problem See I running a site where people can log in, and everytime they log in, a cookie is set, based on their username. so when a user complete a offer, my website send a link to a …

Member Avatar for vaultdweller123
0
119
Member Avatar for cjohnweb

I have a project that, instead of using MySQL, I am supposed to use txt files to manage data. I have no say in this, I'm doing the project for a client. So I wrote a test file with functions for writing these data files, reading, etc. But it's not …

Member Avatar for cjohnweb
0
172
Member Avatar for pizzipie

I am just beginning to get the idea on how to put together the above four source codes to produce, in this case, a Contact Database/Display program. On a 0-10 learning scale I feel like a 3. My current problem is: ContactRevise3.html calls revise.php with the following script: [CODE] <script …

Member Avatar for vaultdweller123
0
671
Member Avatar for vizz

I want to display [CODE]»[/CODE] But it is outputting [CODE]�[/CODE] What is the problem?

Member Avatar for pritaeas
0
60
Member Avatar for jayhall

my Table looks like this id make client price cart 1 bmw day 500 5 2 gt3 mr king 450 9 3 gt3 mrs johan 600 9 4 bmw mr emir 350 2 5 golf ohar 150 5 6 golf mr smith 850 6 7 bmw mr smith 451 7 …

Member Avatar for diafol
0
653
Member Avatar for nyamatema

I cant configure the site in ubuntu where my application will be runing ,and I find it difficult to know where to find MySQL sever.Can any one help me out?

Member Avatar for cereal
0
25
Member Avatar for Trizocy

Greeting everyone I wonder if anyone here could help me how to set cookie on my site I have search for how to set cookie but the problem is that i want to use like this: setcookie("user", "[COLOR="Red"]{membername}[/COLOR]", time()+3600); This is just an example i found on google. I have …

Member Avatar for diafol
0
86
Member Avatar for prasanna123
Member Avatar for prasanna123

[CODE]<html> <body style="background-image:url('back1.jpg');"> <script> // CREDITS: // Snowmaker Copyright (c) 2003 Peter Gehrig. All rights reserved. // Distributed by http://www.hypergurl.com // Permission given to use the script provided that this notice remains as is. // Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=35 // …

Member Avatar for diafol
0
125
Member Avatar for titosd

Hello I have a question. let me have this select: [CODE]<form> <select id="mymenu" name="id" onchange="getID()"> <option></option> <option value="1">A</option> <option value="2">B</option> <option value="3">C</option> </select>[/CODE] And Now i want to get the value from mymenu, to use it i another select in the same form. I searched in the net and i …

Member Avatar for diafol
0
6K
Member Avatar for fredfletcher

Hello, I have tried my best in achieving this, and for some reason, it's not working. What I am trying to do, is to write to file and echo on screen, a converted version of how many bytes/megabytes etc. a file has been uploaded, and echoed on screen upon success, …

Member Avatar for diafol
0
367

The End.