Jump to content

dj-kenpo

Members
  • Posts

    155
  • Joined

  • Last visited

    Never

Everything posted by dj-kenpo

  1. dj-kenpo

    image box

    use php. get the dimension of the image, then ADD some space. eg, if you want an extra say 200px of space and the image is 300 wide, then php tells the width to be 500. just define the width in the div with the style command instead of at the top of your page in in a css file.
  2. I misunderstood your question originally. why not just make a table called complete, with customer id, body_text, date, whatever else you need. then just save the data as a text feild as is. other option could be to add each line as a row in your table. eg product/user id/order id. so an order could include 1 or 20 entries into the databse but the order id would link them all together.
  3. would anyone be able to think of a way to count how many http links are inside a string variable? I'm getting spam to my sites and it's a constant uphill battle, constaly blocking keywords etc, it seems more logical to simply block emails that send me more than 3 links via my form. the only time someone sends me 3 links it's random bullshit spam with nonsense words and links. perhaps this method of blocking would work for others on their comment systems or mails forms as well... thanks!!
  4. networked how, you're really not helping yourself here. they have ethernet ports? or they are on a host pc and thus networked?
  5. or catch it right away at the top <? $searchtype = $_POST['searchtype']; if ($searchtype == ""){ //defualt $sql = "SELECT * FROM members_images LIMIT 1"; }else{ // connect $sql = "SELECT * FROM members_images WHERE images_name='$searchtype'"; } ?>
  6. the input was already photo_filename[] so no change needed there, when I placed this above the files, it outputted in the correct order ie 1. IMG_0427.JPG 2. IMG_0428.JPG 3. IMG_0430.JPG 4. (with the normal script below in reverse order. the problem though is there's an extra blank one now for some reason. #4. it didn't seem to detect the size of the array correctly. I guess I could just add count($files) with a while loop to check, but that seems like a bandaid it would be better to have the array the correct size in the firs tplace. i'm tired after a long day so the answer is probably right there, I have no idea though, any thoughts?
  7. oh ya, the files are passed/uploaded/processed. everything works, but they go in reverse order.... are you sure $_FILES is treated exactly the same as a normal array? that's the only thing I can th9ink of as to why it wouldn't work.
  8. it's pretty easy acctually, well, not eeasy, but possible. php has serial out functions the way I would do it would be to send a number from 1-4 via the serial port to a small microproccessor controller switch box. for building the switchbox if you've never dabbled in microcontrollers I'd start with the "basicstamp" or "pic-axe" both use "basic" for the language, it would need all of about 4 lines of code and then simple relays. there's loads of tutorials out there for hobbyists on the subject. how are the 4 printers hooke dup to the host pc? usb?
  9. for frames the answer was posted above by mgallforever, just read it. it's right there. the frame still uses get becuase the script has to know what file you want, it ain't magic! but it will be hidden from the user
  10. I'm for some reason not able to reverse the array of files I'm uplading. I have a form for uploading 4 images at once. becuase it's javascript on the form, it adds a newfile browse and places the previous one below. that means though when you hit upload, the first file you selected is the last, and vice veras. on the process end I'm suing this $photos_uploaded = $_FILES['photo_filename']; $photos_uploaded = array_reverse($photos_uploaded, true); true, makes no difference, and array_reverse makes no difference, I always get the last file first. for a sequential photo album, this is no good. can I not use array reverse on the array 'photo_filename' ? all 4 upload input slots are named 'photo_filename', so it should be a normal array of 'stuff' right?
  11. what you want it to say is this: <a href="http://oxfordstgrill.com/index.html">click here</a> <? $website_link = "'http://oxfordstgrill.com/index.html"; print "<a href=<\"$website_link\">click here</a>"; ?>
  12. I don't see what the point of copying flash is anyways, flash is on the way out. it's now mostly only being used for little logo animations and video clips, for a few years there flash was everywhere but there was too many limiting factors and it was always too heavy. microsoft just has to copy everything, even when there's no logical point. maybe they should just focus on doing 5 things and doing them well, rather than sloppy.
  13. you can't just export the entire database and then import onto the new one (and or don't want to?)
  14. as for hardware, (not that you're asking this) a dual display setup is what I use, dunno what everyone else has, though I'd be interested in hearing. I have an n420c laptop hooked up with an additional 17" lcd. I figure this winter I'll get 2x 22" + a display splitter to trick the laptop into thinking the 2 lcds are one.
  15. I like notpad2. notepad++ is also really good. then instal xammp on your pc, it installs an apache +mysql server on there and you can just work from localhost to develop your work offline don' t really know what else to say, framworks and dev programs in my oppinion just create bloated code that doesn't run as fast.
  16. bluetooth, or set the main pc they're plugged into as the host ans share them over the network. it's hard to share a scanner though, I'd use vnc to virtually control the host pc from your second. wireless usb is available, but thus far it's not very good.
  17. agreed, though I'm not so sure how well this table will fair. apple is doing the same sort of multi touch on their iphone, but by using cheaper touch screen tech. because ms is using a projector + 5 cameras, the hardware seems very limited. I hope ms switches to using cheaper and more reliable (touch vs camera) tech. that would drop the price alot. not today.. but tomorrow. lcds keep getting cheaper and cheaper, so I expect that in 5 years you'll find graphic designers with these things using their entire desk as a 'tablet' for photoshop. I think it's wicked. the pc world is REALLY going through a renaissance right now with harddrives becoming obsolete and 256Gigabyte flash drives (faster, lower power, more reliable) better cpus, smaller, better wifi, and cheap led backlit lcds and Oleds. the next 5 years are going to be alot of fun!
  18. they demoed this today, you can now order them I believe http://gizmodo.com/gadgets/sticker-shock/video-of-bill-gates-showing-off-his-expensive-table-264453.php?autoplay=true
  19. I realize technically there's something wrong with it, I'm not a noob, I'm saying morally I don't find anything wrong with it as it's not my main system, as for links http://www.thereformed.org/2007/04/25/howto-mac-osx-dell-latitude-c840-part-1/ that ones for a dell, just ignore the install choice part. it looks long, but over half of the stuff is just clicking buttons to format the drive to work as mac. like I said, too me an hour including wait time. now that I've done it it would prob take 30minutes
  20. full specs for those wondering, p4 1.7ghz socket 478 (yes, the old non HT, non duo simply p4) 256mb ddr ram 40gb harddrive integrated video. ac97 sound you really don't need anything steller, just stuff above pentium3. again, they make wicked test platforms for testing browser compatibilty, hence why I posted it HERE on a PHP forum.
  21. for those of you that may be like me and have an old pentium 4 (mine was a 1.7ghz) sitting in your closet, Id just like to say, recyle it into a hackintosh! I need to test if sites work in safari, so I thought what the heck, I'll try it. the JAS version works perfectly. zero hiccups, it installed in under an hour on my old pc, and I'm now running mac osx 10.4.8 I can now test my sites in all browsers right in my living room, without having to fork out cash on a mac that I wouldn't use for anything but testing anyways. can't say how happy I am. as for legalities, I don't think there's anythign wrong with it if it's not your primary system, in my case, I'll use it to test sites every now and then, which helps to enrich the mac user experience, but sorry, not spending even $500 to do that if I can do it for free. the 1.7ghz in my closet I found in the trash originally, so all and all, pretty cool.
  22. are your normal connections working? as in, can you make a connection to the database and query for something (anything), it looks like from the error on line7 the login script is not to blame, something is going wrong with the connection, if not capitalization, misspelling, etc then perhaps the new database is not setup yet. are you absolutely sure the new database is on the new server? sometimes it takes a day to fully propagate, but can you log in and view data, etc via phpmyadmin or a similar program?
  23. looks like mysql stuff is off, not php. is the capitalization the same before and now? your previous server may have been more laid back about it due to settings (I've had that situation) but this one might need things to be exact, a capital letter can make all the difference on 2 things that worked previously, but really shouldn't have been working
  24. "your help was unneccessary" I'll keep that in mind next time you post a question. in the meantime please mark the thread as solved, and for the benefit of other users you could post the code you found that worked for you if ours didn't for some reason.
  25. like I said, google it then, there's lots of tutorials on the net on how to do this, and now that you know the method, you shouldn't need any help. just google away and trial and error till it works
×
×
  • 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.