Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. because the top one parses the $inc as a variable...if I had to guess.
  2. Youtube API http://code.google.com/apis/youtube/overview.html
  3. yeah..what smermny said Make a separate table for all of these generated codes and fill it up the same way you would the products table. CREATE TABLE `gcodes` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `gcode` VARCHAR( 255 ) NOT NULL ) ENGINE = MYISAM ; $query = mysql_query('INSERT into gcodes (`gcode`) VALUES ("{$somerandomgeneratedcode}")) or die(mysql_error()); $somerandomgeneratedcode = mysql_insert_id(); $query = mysql_query('INSERT into products (`gen`) VALUES ("{$somerandomgeneratedcode}") WHERE id = 1)) or die(mysql_error());
  4. what's your regex
  5. using the context/example you supplied it would be echo some_array[0]['@attributes']['id'];
  6. Just the other day Pandora hit me up with that "pay us something" bs. Askin for a dollar or 36 dollars. Either way, I couldn't use pandora no more. I knew there was another one out there somewhere ... thanks CV
  7. because it's while ($rowC = mysql_fetch_assoc($resultC)) { not foreach ($rowC = mysql_fetch_assoc($resultC)) {
  8. Thread locked for double posting.. to be continued on aforementioned thread.
  9. bumping your thread over and over will not get your question answered. If nobody has answered you it's probably because you haven't made any sense..which you haven't. Please elaborate if you want any worthwhile help.
  10. have you looked at parse_url. The PHP function made for splitting up these kinds of things
  11. 1. Do you have this page saved with a .php extension or a .htm(l) extension 2. Are you SURE that php is installed?
  12. what do you mean put it in a PHP file? use it the same way as you did the first statement. normally your username is root to begin with yeah
  13. method 2: finding out why it doesn't work mysql_connect("localhost","username","") or die(mysql_error());
  14. one night stands all the way, is what I say...ya know...until you have that One tantalizing life changing two to three night stand conversation with them. Then you know, maybe....this could mean....something?
  15. Well, I'm no history fanatic ... by any means at all, my dad and brother are though. But they make me watch all of these historical movies about Queen Victoria and Elizabeth and Henry the 8th and etc etc... and I've come to realize that All the world is related. maybe not blood related, but at some point in time "The Queen" whoever it was...or "The King" was pretty much just a grandpa or great grandfather or great descendant to all of the historical....stuff. I don't know your great grandfather or anything or if whatever he said was worth his weight in salt, but if he says you're related to royalty...you'd be surprised how much time you'd waste just figuring that shit out. Your grandparents only live so long. I've seen a few a these historical films and it's just as I say. One grandmother ruled for not miles, but...countries. She had kids until she popped/died. Those kids had kids and those cousins had kids and those cousins killed ...... their own cousins.. If you weren't royalty, then you were one of the ones trying to get the fuck out of there....and change your name.. like a person in today's time trying to flee the cops.
  16. Yeah? maybe someone should pay me "A LOT" and I'll tell them their origin in the 17th century.
  17. I've been messin around with my family tree for .. I don't know how long. For some reason it always interested me. I used to ask my papa (my grandpa) questions about who his aunts and uncles and grandparents were all the time when I was younger (now he's gone and I only have his sister to ask). And would write it down too. I would have an entire notebook it seemed (at the time) of who married who and who their kids were and so forth. I just recently discovered (in the last year or so) ancestry.com. It's almost as if they're capitalizing on this past time...actually in fact they are. There is no 'as if'. But that's not the point or anything nor am I making any point. I'm just bringin upon this topic of "Ever do your family tree?" I spent the entire day tracking down relatives from one single person all the way to the 17th century. Not only today, but at least 5 months ago I did the exact same thing and landed on the exact same century. I constantly get stuck on the same century. No matter how much I google, no matter how many "Ancestry.com" leaves I click on, I end up in 17th century Europe. What the hell is up with this century. Has anyone else had this problem? Not that I want to base an entire topic on this question, but just to get this started ya know. I have found out so far....just by a few googles for relatives...that apparently....this was the time everyone wanted to get to America. (please note that I'm no history person by any means whatsoever. You could cut me up on everything history related) People would have children, name them all the exact same name(s) move to America. Change their last names to something homophonic. Nevertheless though, I still can't get past...or before the 17th century.
  18. don't put one mysql_connect("localhost","username",""); notice the password field is blank... yep
  19. I don't know where you got this idea from out of the first few suggestions. Why would you do that in the first place? I wouldn't want to do that either. FTP is made for grabbing files from your server, whether it is a specific one or the whole damned thing. You don't need a software to use it. The best idea is sort of like MadTechie's but it's made for setting up FTP access. You can't map a drive to an FTP server as far as I know. But, if you're running Windows..which I assume you are.. then look for Network Locations.. near Network Places Add a new one. fill out the form, etc, etc. In Windows 7 it's in My Computer. EDIT: well...damn. Seems like lately I've got the dancing frog syndrome or something. Decided to set up my site like that to play around and it wants to save to Temporary Internet Files on save.
  20. really... $var = $_POST['var'] should never really be used. all you're doing is making an exact copy of an already existing completely useful variable. Now something like $var = (!is_null($_POST['var'])) ? $_POST['var'] : null; I guess you could say that's acceptable since you're actually doing more than just copying the variable. $var then serves a purpose.
  21. yep, that's what you get for coding with register_globals on and exactly why it's bad practice... congratulations you've learned something first hand. you could always just put this at the top of every single script you have extract($_REQUEST); then it would be just as insecure as if your were using register_globals...although..only for those modified pages. Would be like a "register_globals" patch
  22. Yeah if they don't adapt to HTML 5 before Windows 7 ships out then...well, I guess they'd just have to do their usual thing and make a service pack or another damned version of Internet Explorer. Because you know people are gonna buy the Windows stuff regardless.
  23. yeah that did kinda always bug me a little, never got around to mentioning it though....kudos to nrg for reading my mind
  24. note to self... don't try to understand anything marked as...question for daniel0
  25. if you ran it...then where's the code the author wont let me post it neither tell me how he did, so i just took a quick screenshot ^^, wishing anyone could suggest how'd it could be done There is a program in my textbook that I don't understand how works. Can you tell me how it works? I won't show you the source code, but surely you can tell me how it works, right? atleast post a screenshot so we maybe, can understand you better?, and suggest how it can be done. ..............whoa.........it's like a box inside a box..inside a box..dude
×
×
  • 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.