39,326 Topics
| |
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 … | |
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 … | |
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']; ?> … | |
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 … | |
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 … | |
<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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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','') … | |
[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 … | |
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. … | |
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 … | |
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 … | |
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.. | |
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 … | |
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 … | |
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 … | |
I want to display [CODE]»[/CODE] But it is outputting [CODE]�[/CODE] What is the problem? | |
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 … | |
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? | |
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 … | |
will the include funvtion of css works inside <div> of css? | |
[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 // … | |
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 … | |
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, … |
The End.