Jump to content

bwochinski

Members
  • Posts

    116
  • Joined

  • Last visited

About bwochinski

  • Birthday 03/02/1983

Contact Methods

  • Website URL
    http://www.ideltech.com/

Profile Information

  • Gender
    Male
  • Location
    Milwaukee, WI

bwochinski's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'd say if you can you should check if all the uploads were successful before you move anything into your "/news/" folder. Then if all are successful, move them, if not, they will be automatically discarded.
  2. Yeah I see now you've got a couple other bits of PHP in there... You should just be able to add more <?php .... ?> blocks around any other area where you use php.
  3. Yeah teng's right, so never mind my earlier attempt at an explanation. Can't really say why what I recommended worked.
  4. I tried to clarify my previous post after cooldude posted... You just need to add: At the top where you set up the rest of your variables before you start the for loop. You're getting an error because if all the uploads in your script are successfull, $count is never incremented, so when you test for " if ($count > 0) ", it doesn't like the comparison of " if ( NULL > 0 ) ".
  5. You need to end your PHP block... You can then open another PHP block at the end of the page before the "echo" at the bottom...
  6. Do you want these things to change based on the day of the week, or change the color for dates already past, or just change the color of the current date? Or some other condition I didn't mention?
  7. Initialize the variable before your for-loop. (Edit: clarified addition)
  8. If you're deleting a lot of records better to do one query...
  9. didn't test the layout, but I think that'll make it work nicely...
  10. Well, the easiest way to fix the problem at this point would be just to change that line to this: <?php $target = "../news/" . basename( $_FILES[$photo]['name']); ?>
  11. This line is your culprit: <?php $target = $target . basename( $_FILES[$photo]['name']); ?> You need to reinitialize the $target variable each iteration of the loop.
  12. My first guess would be that you're using the wrong syntax for your multidimensional arrays here: <?php $name=$_POST['name['.$id.']']; $lastname=$_POST['lastname['.$id.']']; $email=$_POST['email['.$id.']']; ?> This would be the correct way: <?php $name=$_POST['name'][$id]; $lastname=$_POST['lastname'][$id]; $email=$_POST['email'][$id]; ?>
  13. "array_keys()" returns an array of all the keys of the array. You need to refer to $key[0] and $key[1] etc...
  14. In a class global variables are declared at the beginning of the class outside of any functions. Not sure what you mean about the file...
  15. Well, I don't seen any CSS referenced there, but the problem with your images is that you have to use full pathnames, relative pathnames wont work if the page isn't being browsed from your server. <img src="http://www.yoursite.com/images/mail_big.jpg" width="494" height="481" />
×
×
  • 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.