39,323 Topics
| |
Hi, i got one question to ask,, i had been tried many times still cannot generate correct output. Question: i got one table like this. +-----+------+ |Month|Salary| +-----+------+ |jan | 1000 | +-----+------+ - table border is white color but i wan like become this +-----+------+ Month Salary +-----+------+ jan … | |
Hi all, I am working on affiliate network project. it is having flash banners , for that we create dynamic flash empty .swf file , we pass the 3 parameters, they are 1.inner is a dynamic .swf file to load in my empty .swf. 2. url is a redirect url … | |
$user['username'] = name of the table producttotal 500 6105 131 [CODE]$ordertotal = mysql_query("SELECT SUM(producttotal) FROM ".$user['username'].""); echo "Order total: ".$ordertotal;[/CODE] why is the result "Order total: Resource id #7". I wanted to sum all the values below producttotal column. Thanks in advance. | |
I have one file with checkbox's a user can select. Now if they select one and click submit I want my next file to show the user what they selected. I cant seem to get this working. It looks likes it grabbing the first word and because there is a … | |
This is probably a very simple answer that I'm missing. I have index.php and qeury.php in the same directory. Users visit index.php, which prints some info. It then needs to call qeury.php and exit, without waiting for query to finish running. Query just pings a server and then exits. How … | |
hi, i have a sms script written in php. im just wondering...is there going to be a fee for anyone from sending them? i tried looking on google and all i found was a bunch of sites selling bulk sms packages and a article from 2003 saying that the receiver … | |
Hi guys, I have a feeling there's something small I'm missing from this code. I'm trying to add captcha to an existing contact form that I use. The captcha image displays fine, but regardless of what I enter, the email gets sents and I'm redirected to my thank you page. … | |
I have been working over the past week on a shopping cart script. What I can't seem to find out is how to make the checkout page. I want it to send the list of products, the total, and the address of the customer to PayPal and then have PayPal … | |
I have problem with a simple login script, keep getting message "Call to a member function on a non-object". The same code worked locally, but when i tried to run it online i got this message. have two php files:login.php and connect.php here is simplified code from connect.php [CODE]class Connect{ … | |
html: <input name="product" type="radio" value="Tarpaulins ">Tarpaulins <input name="product" type="radio" value="stickers"> Vinyl Stickers<br> <input name="product" type="radio" value="PhotoCanvas"> Photo Canvas code: if($product== "Tarpaulins" ){ echo "Tarpaulin rate : {$row['Tarpaulin_rate']}"; }else if($product== "stickers"){ echo "stickers rate : {$row['stickers_rate']}"; }else if($product== "PhotoCanvas"){ echo "Photo Canvas rate : {$row['PhotoCanvas_rate']} "; } | |
banner_manager.php [CODE] //Cek apakah ada file yang diupload if((!empty($_FILES["uploaded_file"])) && ($_FILES["uploaded_file"]['error'] == 0)){ $gambar = uploadPicture("uploaded_file"); } if (empty($id)) $sqlstr = "INSERT INTO banner(link, gambar) VALUES('".$link."','".$gambar."')"; else $sqlstr = "UPDATE banner SET link = '".$link."',gambar = '".$gambar."' WHERE id =".$id; $result = mysql_query($sqlstr) or die(mysql_error()); $confirmation = ($result)? "Data telah … | |
I have installed buddypress and oscommerce plugin in wordpress. But i need to a common login and registration, so i started making custom registration plugin. And for that I need to remove the buddypress registration page and use wordpress default signup. Also if there any other way around please let … | |
Hi, I have a cookie issue. On localhost i have a cookie file "cookie.txt" (located ir root dir) which works fine. However, on remote server the app seems not to find the file. Is there a server config option that prevents my app from seeing that cookie file? Thanks | |
Is it possible? Currently, I am inserting data to a CSV file using PHP via the fputcsv() function. When opened in Excel, it works fine. The problem is that all the columns are of the default size. Is there a way to autofit the column width and possibly modify the … | |
I'm wondering: Why would I need to use a static variable? When I initiate a class, that class remembers the value of a variable I declare in that class anyway, right? What does the [I]static[/I] part add to that? For example, what's the difference between [CODE]class Hello { public $variable; … | |
Hey, I need a bit of help... I am trying to create a simple invoice script... but im stuck on the invoice lines... I think I can use javascript to add more lines when the user clicks a button but then not sure how to process that list as I … | |
My rss feed wont validate, throwing this error but I dont understand it...please help? error on line 10 at column 75: EntityRef: expecting ';' [CODE=php]<?php require_once('../includes/functions.php'); if (file_exists(SITE_ROOT.'/themes/'.THEME.'/feed-rss.php')){//feed-rss from the theme! require_once(SITE_ROOT.'/themes/'.THEME.'/feed-rss.php'); } else{//not found in theme header("Content-type: text/xml"); ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>RSS - <?php echo $html_title;?></title> <link><?php … | |
I took a look at this list, [url]http://www.hongkiat....-carts-best-of/[/url], and hoped that someone could help narrow the selection down. I will want to use it to allow users to place like 1-3 different types of orders - I don't need 1000 or even 10 products to sort through and list. I'm … | |
I have a site in which two wordpress cms are installed. One in root directory while other one in news directory. So when i add link of [url]www.xyz.com/forums[/url] in [url]www.xyz.com/news[/url] it becomes [url]www.xyz.com/news/forums[/url]. Please help with this improper url redirection | |
How tract a mail sent from our id is forwarded or not using PHP code. | |
Hello I'm new to sql (sql 2000 database) and i'm trying to get two simple things. I have two sql queries that i run in order to display a result and to update another one. The queries that i run in sql query analizer are: 1. select memb_guid from MEMB_INFO … | |
Hi I know I have been going round the houses with this image resizing quite a bit...but still trying to do it. Some progress has been made. This is not using Imagick, as I have no idea about this library. So what the below code is now doing is picking … | |
hello all, i am new here, i saw your community and i think to start here :) i opend new site base on wordpress i got this prob : Warning: Cannot modify header information - headers already sent by (output started at /home/down/domains/4downyoutube.com/public_html/wp-content/plugins/youtubefreedown/stream.php:1) in /home/down/domains/4downyoutube.com/public_html/wp-content/plugins/youtubefreedown/curl.php on line 185 this is … | |
hi friends I have run the one php script live server([URL="http://www.live.com/samplee.php"]www.live.com/samplee.php[/URL]) . this file access the staging server and run the staging server php file and display the result. But I need the live server address server name also display in the staging serevr php page result page. How can … | |
php and mysql form Hi all, how I can add values in a table to a combo box in html .. eg: the user's table has the id 1,2,3,4 and that using a query, being able to move to a combo box, to make a selection of id?. Greetings and … | |
Hi guys. Im new to PHP by necessity really due to a friend of mine asking me a favour. I know vb.net so not completely new to the whole programming scene. But anyway, I have approx 5 drop down lists. Each item in each drop down has a value "option … | |
Hi, How can I use preg_replace to determine if a string contains a word beginning with a pattern, and if it does, remove it? Basically I want to capture query strings from a search, but throw away search modifiers. For example, the search query string: site:daniweb.com query would just become … | |
Hey all, To make it more user-friendly, I decided I want to add a JS form validation to my contact form. The essence of the JS should be that it calls for a check.php?input= with the entered captcha code appended. Then the PHP script would echo "valid" or "invalid". For … | |
[CODE]<form action= '1stform.php' method = "POST"> <fieldset border = "5"> <table> <tr> <td>Check Availability</td> </tr> <tr><td> <p>Garden Room: </label> <select name="room_GR"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option … |
The End.