Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~6K People Reached
Favorite Tags
Member Avatar for sun-tzu
Member Avatar for ken.atienza

$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.

Member Avatar for sun-tzu
0
98
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 sun-tzu

[CODE] // Add to cart function $("#add-to-cart-form").submit(function(event) { /* stop form from submitting normally */ event.preventDefault(); $(".add_to_cart_message").show().html('Adding item to cart'); $.post("http://www.wghandcrafted.com/add_to_cart.php",$("#add-to-cart-form").serialize(), function(data) { $(".add_to_cart_message").html(data).delay(3000).fadeOut(); $("input.quantity").val(''); $("#cart-panel-widget").load('http://www.wghandcrafted.com/cart.php'); }); }); [/CODE] And the form: [CODE=HTML] <form id="add-to-cart-form" method="post" action="#"> <input type="hidden" name="pid" value="<?php print $P['id']; ?>" /> <div class="spacer"> <label for="qty">Quantity:</label> <input …

0
63
Member Avatar for sun-tzu

I just made this code today for a site I'm working on and figured people may try to improve it. To use: [CODE] $("#randomize").randomize(); [/CODE] [CODE=HTML] <!DOCTYPE HTML> <html> <head> <title>Random Pick Test</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script> <script type="text/javascript" src="randomize.jQuery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#randomize").randomize({ direction: 'topToBottom', evenBG: '#FFF', evenFG: '#000', …

Member Avatar for Taywin
0
686
Member Avatar for sun-tzu

Ok, I have been dealing with this problem for a while now and I need it fixed. I am starting to design a site at [URL="http://wghandcrafted.com"]http://wghandcrafted.com[/URL] and under the footer at the very bottom of the page there is a 10px white space. I can't figure out what's up.

Member Avatar for sun-tzu
0
105
Member Avatar for Farhad.idrees

Hi my problem is that logo is showing but behing the header..i want to show logo ofcourse in front of header... my css is #Container { width:1024px; margin-left:10%; margin-right:10%; } #Header { } #Top_Menu { margin-top:-160px; } #Logo { float:left; margin-top:-120px; margin-left:5px; } my html code is <!DOCTYPE html PUBLIC …

Member Avatar for sun-tzu
0
152
Member Avatar for Ravi tiwari

I fetched text from database in the table <td> I found all the text appear in single line I want to break it. I using PHP.

Member Avatar for cwarn23
0
116
Member Avatar for sun-tzu

I am trying to build a store site. I want it to have friendly urls such as "/home","/store","/store/5443405", etc. I just cant figure out how to give my url more than one level. i.e. "/home" << one level "/store/5443405" << 2 levels. My php file looks like this right now …

Member Avatar for sun-tzu
0
253
Member Avatar for sun-tzu

The actual plugin is much more complex, but I can't even get this simple alert to show... [CODE] (function($){ $.fn.randomize = function() { var defaults = { }; var options = $.extend(defaults, options); return this.each(function() { obj = $(this); alert(obj); }; })(jQuery); [/CODE]

Member Avatar for AleMonteiro
0
103
Member Avatar for sun-tzu

Hey, I want to build a shopping cart for my sister's online jewelry business, but I can't quite get my thoughts organized enough to make something work. Anyone have a script that could work? P.S. It should have the ability to make options for products such as size, color, etc.

Member Avatar for pritaeas
0
81
Member Avatar for sun-tzu

I am building a website for a charitable organization here in Paradise, CA called Heart to Hand. One of the many things that I am going to have the site do is list children in need of Christmas presents. For those people that are a bit indecisive I want to …

Member Avatar for Taywin
0
417
Member Avatar for sun-tzu

Basically what I need to do is take a number of elements, lets say 6 in this case, all of which are div's with an image child e.g. [CODE=HTML] <div class='triangle-element'> <img src="../images/face.jpg" /> <div> [/CODE] I want to be able to eventually take each instance of .triangle-element and turn …

Member Avatar for MartinRinehart
0
86
Member Avatar for JimPatrick

Hi Guys, We are having an issue with the video playing on our client's site. The video plays fully locally but not fully once set live on the any of the browsers, it plays just the first 15secs, then it stops. Can anyone share some ideas as to how we …

Member Avatar for sun-tzu
0
174
Member Avatar for Rizi004

I want to know that how i can get the text which user write in text area and want to show that text in web page same as facebook when we write something and and add comment it will show in a div how i can go with innerHTML i …

Member Avatar for sun-tzu
0
187
Member Avatar for sun-tzu

[url]http://www.backatya.org/products-page/checkout/[/url] You may have to add an item to your cart first to see the checkout page, but I am trying to figure out why the form fields show the <br> and just plain don't look right. I am using the WP e-Commerce plugin and can't figure out what I …

Member Avatar for HITMANOF44th
0
155
Member Avatar for sun-tzu

I couldn't decide where would be the right place to post this, so I decided to try php since Wordpress is at least built in php. I need to find a way to duplicate my Wordpress installation on a subdomain. I want to create a mobile version of my site …

Member Avatar for MagicMedia
0
164
Member Avatar for sun-tzu

I am getting the 500 Server Error message when I try to run my captcha script. The script is as follows: [CODE] <?php //Start the session so we can store what the security code actually is session_start(); //Send a generated image to the browser create_image(); exit(); function create_image() { /*//Let's …

Member Avatar for linuxaomi
0
241
Member Avatar for sun-tzu

It is by now a well known fact that you can send a text to a sms carriers sms gateway email and the person on the ohter end will get it as a text (e.g. [email]XXXXXXXXX@vtext.com[/email] - Verizon). However, for some reason I am not able to receive mail from …

Member Avatar for sun-tzu
0
159
Member Avatar for sun-tzu

I have been fighting with my server for days. I am trying to get postfix configured. I have it currently so that it can send mail, but receiving mail is a different story. This is my main.cf file: [ICODE] # Please be sure to read the /usr/share/doc/postfix/README.MDK file # to …

Member Avatar for davidchilders
0
235
Member Avatar for sun-tzu

So I am building an app on facebook that is meant to be a photoshop clone. The problem I am facing currently is how to make a circle around the cursor that follows it around like in photoshop. Also like in photoshop, I would like the size of the circle …

Member Avatar for Taywin
0
183
Member Avatar for sun-tzu

i need to know weather or not there is a way to put the cursor below (z-index wise) a div element or make it so that you can click through the div element.

Member Avatar for Taywin
0
1K
Member Avatar for sun-tzu

Ok, so I am building a website, and am trying to use jquery to get video thumbnails from YouTube and pass them into the corresponding images. I am still fairly new at jQuery and could use some help with the code. Here it is: [CODE] $(function() { $(document).ready(function() { var …

Member Avatar for vsmash
0
137