Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. try either echo or [code]echo EDIT: no...nix that idea
  2. Heredocs http://www.phpf1.com/tutorial/php-heredoc-syntax.html Lengthier Example http://onlamp.com/pub/a/php/2003/04/10/php_heredocs.html
  3. in order to view the value of $container using this function public function viewContainer() { $total = count($container); print_r($container); print($total); } you actually need to give the variable to that function like this public function viewContainer($argument) { $total = count($argument); print_r($argument); print($total); } then you can use the function viewContainer($container);
  4. the computer that the mysql console is running on needs to be allowed to access the mysql server at your byethost.com host
  5. set the grid to pixels... snap-to grid and zoom in a lot other than that I'm clueless what you're trying to do
  6. snap-to pixel?
  7. uh.....what!! that didn't make any gotdamned sense.. that's just the main method...you have to have one...it's like the constructor Class PooP { public static void main(String args[]) { //I forgot all the java functions } }
  8. and if you haven't noticed already...people have spent a lot more time 'answering' this thread than they have your other one. Mainly because of your presentation of it. Notice how it is well crafted and straight to the point of how you are dumbfounded as to why anyone would cease to answer your question. Maybe you could elaborate a little more...or a lot more on your other topic and it's future could be little more greener (AKA... SOLVED)
  9. Advanced POOP lol..I had to do it but yeah.. If you want to learn.....OOP or Advanced OOP I would suggest digging into some Java. Buy you a good book, get you a good compiler. I learned with BlueJ.. probably not the best in the world. I'm sure a good percentage of people will lean on NetBeans or something I've never tried it. But that's how I learned OOP. I don't even use Java .. at all, but I sure as hell know what OOP is I'll tell you that. I even coded in PHP way before I used Java. I didn't even know what OOP was until I took that Java course at college. public static void main....it's burned in my brain
  10. So what's your problem exactly..? That you want to make a detailed report.
  11. not trying to discourage your mail script or anything but calling the mail() function 100+ times over and over again is just going to freeze your script/server..etc Your best bet is to compile a comma separated list of 100 people at a time if not all of your users and send it all at once as a BLIND CARBON COPY -> Bcc something like this http://www.dreamincode.net/forums/showtopic99812.htm
  12. no... what are you trying to do
  13. You sure it doesn't save it as 0000-00-00? Mysql's date datatype is YYYY-MM-DD which means you'll have to write your script to format whatever the user enters into that format. Yes, using those fancy calendar script's would make it easier..I've never used one or set one up so I don't know how much of a pain they are to set up..I'm sure it isn't anything more than a text file though.
  14. just a shot in the dark here..but try changing this session_start();?> to this [code] ob_start(); session_start();
  15. what does members.php look like is what PFM is getting at...I think...if not ... that's what I'm asking
  16. something tells me you have no idea what your code does.....which leads me to ask...did you do anything to your files before this happened?
  17. Well I hate to ask how it isn't working because frankly, that is a horrible way of going about what you are trying to accomplish. I assume this is the code... after you have queried the database...am I correct? if so..then I would do this...mind you I just wrote this up..without testing. ------------------------------------------------------------- I would keep the 5 columns like you have...ALSO I would make sure that those columns are set to NULL by default. That way when you go to check them you can just check and see if they are NULL instead of if they are empty now the code $uploads = array(); $uploads[] = $row['upload_1']; $uploads[] = $row['upload_2']; $uploads[] = $row['upload_3']; $uploads[] = $row['upload_4']; $uploads[] = $row['upload_5']; $uploadCount = 0; foreach($uploads as $upload) if(!is_null($upload)) $uploadCount++; echo "You have uploaded " . $uploadCount . " / ", count($uploads), " photos"; again...may or may not work...and may not be the most accurate way ...but it's definitely better than what you are doing now...no offense because..the way you are doing it......let's say for instance...upload_3 had something and nothing else...figure that one out.
  18. well..my first instinction is that the function iperlevel is being redeclared This would mean that you are declaring it more than once I"m not sure where or how because that is a LOT of code to read through...
  19. I got a better idea.. whenever someone comes along without a session set somehow...it sends you...dreamwest a PM I don't really see the revenue in all that but..you could just add up all of the PMs in your inbox and create a lump sum/product/average/equation out of it all and send that amount to us....in dollars/cents/pence/euros/whatever.. Secondly, why the hell are you double posting...now look what you've done...5 posters already in a double post.
  20. try $_SERVER['REQUEST_URI'] by itself I don't have one made right now..and I'm too lazy to fix everything to set up a server right now but if you create just a simple phpinfo() file it will give you a list of all the SERVER variables and you can just pick out the one you are looking for.
  21. you can get most all of those things from google
  22. There's a good tutorial on Regex Basics on the main site
  23. you should just use = instead of LIKE since of course you're not using any wildcards....and it works
  24. idk, I was glancing through the mysql doc on replace and though it was an actual command like SELECT or UPDATE, guess I was wrong...maybe this would work then SELECT * FROM product_table WHERE REPLACE(`product_name`,'-','') LIKE '%" . $keyword . "%' but if you did that you'd HAVE to strip the hyphen beforehand...AND the wildcards would be kind of redundant...depending on what you have in that field EDIT: or maybe... SELECT * FROM product_table WHERE REPLACE('".$keyword."','-','') LIKE REPLACE(`product_name`,'-','')
  25. as for this $query="SELECT * FROM product_table WHERE TRIM("-" FROM `product_name`) LIKE "%' . $keyword . '%''; you have the quotes backwards it should be $query="SELECT * FROM product_table WHERE TRIM('-' FROM `product_name`) LIKE '%" . $keyword . "%'"; as for that query itself...I'll just let fenway chop that one up since I suck at that sort of thing anyway
×
×
  • 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.