39,316 Topics

Member Avatar for
Member Avatar for Viobert
Member Avatar for sun-tzu
0
59
Member Avatar for sun-tzu

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 …

0
70
Member Avatar for newprimitive

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{ …

Member Avatar for mschroeder
0
421
Member Avatar for eve_moore

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']} "; }

Member Avatar for cereal
0
92
Member Avatar for davy_yg

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 …

Member Avatar for Zagga
0
216
Member Avatar for danishbacker

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 …

0
93
Member Avatar for Buppy

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

Member Avatar for cwarn23
0
70
Member Avatar for martin11ph

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 …

Member Avatar for martin11ph
0
1K
Member Avatar for minitauros

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; …

Member Avatar for cwarn23
0
118
Member Avatar for Danny159

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 …

Member Avatar for Danny159
0
71
Member Avatar for Inny

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 …

Member Avatar for Inny
0
235
Member Avatar for webster99

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 …

0
46
Member Avatar for stranger_on_way

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

0
68
Member Avatar for merlinem
Member Avatar for deviss

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 …

Member Avatar for mathieu89
0
323
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
214
Member Avatar for Vod4All.Net

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 …

Member Avatar for Matthew N.
0
1K
Member Avatar for vssp

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 …

Member Avatar for bab2501
0
754
Member Avatar for joslup9

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 …

Member Avatar for joslup9
0
298
Member Avatar for rosstafarian

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 …

Member Avatar for diafol
0
141
Member Avatar for Dani

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 …

Member Avatar for diafol
0
2K
Member Avatar for Jeroen van Zijp

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 …

0
104
Member Avatar for diyez treze

[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 …

Member Avatar for diafol
0
138
Member Avatar for Pytho

Hi all I'm making a program (for my use only) which contains all the available information about atoms. I want to collect the information from Wikipedia, but if I copy & paste it takes my whole life! For example, heres the [URL="http://fi.wikipedia.org/wiki/Vety"]Wikipedia page[/URL] (sorry, it's in Finnish because I want …

Member Avatar for Pytho
0
180
Member Avatar for kaosjon

Hi, i have written a section of code for my website and i have been trying to get it to work but whatever i try it will not work Here is the code [CODE]$upgrade_user = mysql_query("SELECT * FROM user_info WHERE id='$id'"); while($row = mysql_fetch_array($upgrade_user)){ $real_balance = $row["$balance"]; $real_rank = $row["$rank"]; …

Member Avatar for cwarn23
0
98
Member Avatar for MichaelBerh

I am trying to make my website display a different header depending on the page. If the page is 'index.php', it should include 'index-header.php'. If it isn't 'index.php', then it should include 'page-header.php'. So far, I have the following code: [CODE] <?php if($_SERVER[SCRIPT_NAME] == '/index.php'){include (index-header.php);} else { include ('page-header.php'); …

Member Avatar for cwarn23
0
160
Member Avatar for [csharp]

Hi, I want to limit access to a specific page. Page should be loaded only if the request comes through links from some web address? Can i done this with php?

Member Avatar for chrishea
0
48
Member Avatar for tusharbhatia

Hi, I am trying to search for numbers in an array - "explodedArray" which has been "exploded from a text entry. The aim is to be able to allow the user to type something in like " 5 + 5 " or "5 plus 5" or even "5 plus 5 …

Member Avatar for tusharbhatia
0
142
Member Avatar for davy_yg

Image_gallery.php [CODE] $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } echo '<p align="left">Connected successfully'; $db_selected = mysql_select_db("template", $con); if (!$db_selected) { die ("Can't use template : " . mysql_error()); } //Save File if (isset($_REQUEST['save'])){ if (empty($_FILES['uploaded_file'])){ echo "Tidak ada file yang diupload."; }else{ …

Member Avatar for mschroeder
0
423
Member Avatar for a asif

I want to create a visual info system just like google earth. the difference being that it would help people search important educational, industrial, historical sites. what environment should i preferably go for? php or asp.net. i am new to both these env.s so kindly recommend the one that is …

Member Avatar for diafol
0
123

The End.