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

24 Posted Topics

Member Avatar for sun-tzu
Member Avatar for ken.atienza

You can not get data from a table in this way. Try this instead: [CODE] $user['username'] = 'bob123'; //Example $query = mysql_query("SELECT SUM(producttotal) AS sum_total FROM ".$user['username'].""); $sum = mysql_fetch_array($query); print $sum['sum_total']; //Should print the data correctly [/CODE] As a side note, is the $user['username'] the name of a table …

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

Haha, that is a BIG question you are asking. I suggest you take a look at this and try to follow it as best you can [URL="http://net.tutsplus.com/tutorials/php/how-to-create-a-phpmysql-powered-forum-from-scratch/"]NetTuts[/URL]. Good luck!

Member Avatar for sun-tzu
0
61
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
71
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
65
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
703
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
115
Member Avatar for Farhad.idrees

[QUOTE] #Logo { float:left; [COLOR="Red"]margin-top:-120px;[/COLOR] margin-left:5px; } [/QUOTE] My guess it that the margin-top of -120px is taking your logo above the viewable area.

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

It sounds like you may have a whitespace issue.. try setting the css white-space to normal. Like this [CODE=CSS] td { white-space: normal; } [/CODE]

Member Avatar for cwarn23
0
122
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
255
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
106
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
83
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
425
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
88
Member Avatar for JimPatrick
Member Avatar for Rizi004

Fairly easy to do surprisingly. As long as you have enough PHP or other server side experience. First for the HTML: (All untested code!) [CODE=HTML] <html> <head> <!-- Make sure to include jQuery --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script> <script type="text/javascript" src="/js/status-update.js"></script> <title>Status Update Test</title> </head> <body> <form id="status-update" method="post" action="/"> <textarea …

Member Avatar for sun-tzu
0
190
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
157
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
167
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
244
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
163
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
241
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
185
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
141

The End.