Jump to content

brem13

Members
  • Posts

    179
  • Joined

  • Last visited

About brem13

  • Birthday 10/28/1985

Contact Methods

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

Profile Information

  • Gender
    Male
  • Location
    Canada

brem13's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. hey, im using the $_SERVER['HTTP_USER_AGENT']; code to find the users browser. now, i get "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1". when i run the script how would i use preg match, to just get the 'Safari' from that???
  2. ok, i figured it out, i made a javascript reload function and called it from the login script running in the iframe
  3. sorry, i should have explained more, i have a login script in a header on a page, thats running a login script in an iframe, after the login script is run, i want it to refresh the header, thus refreshing the whole page, not redirecting it
  4. is there a way to auto refresh the same page youre on after a script runs?
  5. hey, i was wondering how i would make a preg match check for special characters, i would only like to allow an underscore _ and a dash - i'm currently using preg_match("/[^0-9]+$/",$getUser) but thats not working right
  6. hey, i'm calling some text back from a database and i noticed a problem. If someone puts a lot of characters in a row ie(xxxxxxxxxxxxxxxxxfkljsadjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjlassssssssssssssssssssssaaaaaaaaaaaaaaaaaaalllllllllllllllllllll), its causing the table cell to get longer and longer and longer. is there some code that will make it do a line break so it doesnt make my 500px wide table cell 15000px long?? anyone understand what im sorta saying?
  7. hey, im trying to show data in a text box thats being retrived from a database, but if there is a ' in it, it will only show the text up to that point. (ie. if it has "You're" it will only show "You") here is the code im using echo "<input type='text' value='$picComment'>";
  8. yes, the pic is there, i tested the same code in a blank page with the header and it worked, but when i add the code to the section of a page i want it in, and add the header to the top, it only shows a 'little box with a question mark(im on a mac) indicating a picture should be there' - the image address for that is just the url to that page and shows nothing else on the page
  9. hey, i'm trying to add a watermark to pictures that show up, however it is only showing as text here is the code $watermark = imagecreatefrompng('watermark1.png'); $image = imagecreatefromjpeg("/userImages/big/".$pic); imagecopymerge($image, $watermark, 5, 5, 0, 0, 135, 35, 100); imagejpeg($image); imagedestroy($image); imagedestroy($watermark); also, where i fould how to do this, said u have to put a header('content-type: image/jpeg'); code at the top of the page or else it would read as text, however, when i do that, the whole page disappears except for a question mark thing indicating a picture should be there? what do i do??
  10. hey, i'm trying to make a while loop that will make a var name go up by number, ie($pic1, $pic2, $pic3, etc) if the value isnt blank, however its not doing it the way i want, $i = 0; $count = 0; while($i<=5) { $i++; if($$pic.$i=="") $count++; }//end while
×
×
  • 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.