Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. The -> is a call to a function or variable in an object. change $content to content. What is $Panel? If you're working with a third party script, you should check for support from them before randomly trying to call functions. If that's the way you display content in this class, then okay, but that's not a function so I doubt it will work.
  2. That's the part that is a weird approach to it. You should think more object oriented. Have an array of items. Each item is a smaller array of those three vars you want. This is still a multi-dimensional array, but it's more logical to have items with properties than large lists of properties, which as far as I can tell from your code is how it's written. So every time they add an item to the cart, you do $items = $_SESSION['items']; $item = array('size'=>'whatever', 'quantity'=>1); //(etc) $items[] = $item; $_SESSION['items'] = $items; Maybe this is similar to what you're doing, but you posted too much code to read. You should look into OO-PHP, it would help with this sort of app. On Preview: Thorpe is right. Read the article in mine and his signatures.
  3. Sometimes you have to step back and say, this approach is not the right one for reaching my goal. Why do you need two forms? <form method="post" action="<?php echo $editFormAction; ?>" enctype="multipart/form-data">
  4. Damn I just looked at those two - $250 and $995/yearly? Fuck. You'd have to be selling a whole lotta PHP for that to be worth it. There's gotta be cheaper stuff out there. *searches*
  5. A single array... It seems like a weird approach to it. But as I said - too long, didn't read.
  6. cmg, that doesn't pertain to selling the code.
  7. p[quote author=ridiculous link=topic=123226.msg509021#msg509021 date=1169266897] Does anyone know if its possible to use the PHP trim() function in this capacity? [/quote] "trim (PHP 3, PHP 4, PHP 5) trim -- Strip whitespace (or other characters) from the beginning and end of a string Description string trim ( string str [, string charlist] )" NO. Do you have a problem with google? Both of your questions could be answered faster by you searching than you posting and bumping.
  8. You have very little patience. I don't see anything on this post related to PHP. Did you google it? I found several results.
  9. tldr; Why are you using multi-dimensional arrays there?
  10. You need sendmail. Did you read the php.net/mail page?
  11. Since there are no variables, in the string, you should use single quotes, and then you don't have to escape anything. $content= '<br><strong> <font size="2"> My Heading Here </strong></font> <br><a href="http://lussumo.com"> Lussumo</a><br> <a href="http://google.com"> Google</a>'; I think you need to read up on basic code. Like, what strings, variables, functions ARE.
  12. the variables in POST relate to the names of inputs, selects, and textareas. None of your form elements have those names.
  13. change: $sql ="SELECT `username`,`password`, `id`, 'gid' to: $sql ="SELECT `username`,`password`, `id`, `gid`
  14. You can't just put HTML in PHP. You have to either print or echo it, or close your php. [code]<?php if(isset($Panel)) { ?> <br><strong> <font size="2"> My Heading Here </strong></font> <br> <a href="http://lussumo.com"> Lussumo</a><br> <a href="http://google.com"> Google</a>'); <?php } ?> [/code]
  15. I'll try again. I did a simple test one to make sure, because my more complex code didn't work. Here is what I have: [code]<? print mail('jessica@grady.us', 'test', 'test', 'From: "Jessica" <jessica@jesirose.com>').'<br />'; print mail('jessica@grady.us', 'test', 'test'); ?>[/code] And I get 1 1 So the mail was accepted...it's just not being delivered. Their support has a topic on mail in RoR, but nothing for PHP. *pout*
  16. if(intval($var)){ } Or you could use is-numeric() http://us3.php.net/manual/en/function.is-numeric.php
  17. When you define a function you do function foo($bar){ //code } When you call it you just do foo($bar); You only define it once, you call it however many times you want, just like any other function like sort(), print(), etc.
  18. no, it returns true, but the mail isn't actually being sent. Did you have to configure anything?
  19. You call the function. You're declaring it 4 times. Define it once, and call it 4 times.
  20. Does anyone know what you have to do to get mail() to work on mt's (gs)? I have contacted them but their support is slow.
  21. *chomp chomp* my favorites are the 5s. They taste like chicken.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.