Jump to content

eugene2009

Members
  • Posts

    109
  • Joined

  • Last visited

    Never

Everything posted by eugene2009

  1. How would I make it a variable though? I need to plug those numbers into a database. And you know how to remove the apostrophes also?
  2. preg_match_all('|<img src="/images/product/icon/(.+?).jpg|', $str, $matches); foreach ($matches[0] as $select) { preg_match_all('|<img src="/images/product/icon/(.+?).jpg|', $select, $matches2); var_export($matches2[1]); echo '<br>'; }
  3. My array results keep displaying like this. I want it to just display the numbers in the quotations. any help? array ( 0 => '4396', ) array ( 0 => '3934', ) array ( 0 => '5063', ) array ( 0 => '4394', ) array ( 0 => '3936', ) array ( 0 => '4393', ) array ( 0 => '4395', ) array ( 0 => '5064', ) array ( 0 => '5062', ) array ( 0 => '4224', ) array ( 0 => '3322', ) array ( 0 => '3321', ) array ( 0 => '3320', ) array ( 0 => '3725', )
  4. hello. i have a php page in a <img src'""> tag. i did this to have it record the viewers ip.. this tag is placed on a dynamic page.. so the page is always different.. is it possible to use something like.. file_get_contents to record all the text thats on the page where the <img> tag is included? i do not know how to word this.. please help
  5. is this the proper way to do it? <? header('Content-Type: image/<image-mime>'); echo '<img src="img_url_here">'; ?> because it is not working
  6. because say i want to put this on a myspace profile.. i cannot run scripts on myspace.. lol
  7. How would I go about using an “img src” tag to call a PHP script that looks like a .gif, but instead of showing a graphic that program looks at the server environment in order to capture the IP address. please help. thank you
  8. very simple.. i just want to know the simplest way to do it.. how would i split a 10 digit number.... i.e. 5952324843 into 3 variables.. say if its a phone number and i want them to be split into characters of 3, 3, and 4. ($var1, $var2, $var3 ) thank you
  9. seriously.. come on. just help me
  10. hmm if its the same url over and over just do this <? echo "<a href=\"http://www.company.com".$whatever_the_link_is."\">http://www.company.com".$whatever_the_link_is."</a>"; ?>
  11. you forgot the } at the last line
  12. that does not work.. hmm i tried everything possible somebody PLEASE HELP ME!
  13. I already read that article but it does not make sense to me because I do not have access to the server.. i tried this $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments SET time_zone = America/Los_Angeles WHERE tutorialid='1' ORDER BY commentid DESC LIMIT $offset, $rowsperpage"; this still doesnt work.. please help
  14. $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE tutorialid='1' ORDER BY commentid DESC LIMIT $offset, $rowsperpage"; Can I change the timezone for the date_format? i dont know how.. i need it in PST please help
  15. Hello, i have a script that records pageviews.. everything works great it does an insert if not exists, and it updates +1 if it does.. thats not the problem though.. for example.. row1 - 6 row2 - 5 row3 - 8 row4 - 2 row5 - 9 What code can I use that will automatically give me the sum of all the rows (6+5+8+2+9, etc.) because those numbers will always be updated and I want a total that will be updated please help
  16. oh woow.. stupid mistake.. i was selecting rows where a certain name would match with a date.. the date format were %m/%d/%Y forgot to put that in when selecting.. heres the code.. it works correctly now thanks! $count = "SELECT COUNT(*) FROM contacts WHERE name='$name' AND date_format(date, '%m/%d/%Y' )='$date'";
  17. One of your options is to create a table with that image as the background and then positioning input fields and transparent buttons in the area you want them to be in all in a <form> tag lol no body will take the time to do this for you.. either you learn it yourself or hire a web designer..
  18. Have a quick little problem.. Is it possible to have 2 where statements.. for example... $count = "SELECT COUNT(*) FROM table WHERE a='$a' AND b='$b'" this does not work.. what is the correct way to do this.. thank you..
  19. what is the most simplest way to resize an image.. i want something like this.. $img = $_GET['img']; $img_new = resize($img); echo '<img src="'.$img_new.'" border="0">'; i need the most simplest way possible.. i want all my images resized to 150 x 70
  20. I need help. ive been searching all over the place to find out how to create sliding frames.. i dont know what they are called but they are seen everywhere.. i.e. you click on a link and the screen goes dim and a little window pops up in the center.. or sometimes slides out from the side.. can someone please help me? thank you
  21. is there a php function to convert color names to hex? say if a user inputs "white" it will convert it to "ffffff" ? please help.
  22. that worked! thanks!!!
×
×
  • 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.