Jump to content

girl

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by girl

  1. girl

    Pagination

    Hi all.Can you please suggest me a good way to make pagination in php or a good tutorial about it?Thanks
  2. girl

    Embed video

    How do I embed video using php?I want to copy-paste youtube link and get embed link.Thanks
  3. girl

    Video via youtube link

    Should I use regular expressions here?
  4. girl

    Video via youtube link

    Yeah, thanks...But there is a problem... I try with iframe.When I enter this link: http://www.youtube.com/embed/XGSy3_Czz8k; it plays normally, but when I try other links, it doesn't. What is the problem??? The /embed/ part of link?
  5. Hello everybody :)Can you please help me. I want to insert video in my page using its youtube URL. How can I do it?Thanks
  6. girl

    move_uploaded_file

    Hi all.I have a question. I want to upload an image using php and insert it into mysql table. I think I can do it with move_uploaded_file, but I don know how to write the destination to mysql table.Thanks.
  7. Hello.I have a question.I have created a converter. I have table in Mysql, where I bring exchange rates from. But I don wanna update that rates everyday by hand. Is there any way to get that data updated from internet?Thanks
  8. girl

    Image transparency

    Solved... thanks to everyone ))
  9. girl

    Image transparency

    Yah, I got my mistake that it is not image.... but can't understand to what give that opacity???
  10. girl

    Image transparency

    Yes, I got.So how I can give "opacity" to background???
  11. girl

    Image transparency

    Hello everyone.I need your help people.Here I have a code: in html<div class="word-box"> <table><tr><td colspan="2"><h1>title</h1></td></tr> <tr><td style="width:150px";><p>some text </p></td> <td><p>some text </p></td></tr></table></div> in css.word-box{margin-top:-255px; margin-left:0px;width:300px; height:350px; border-width:2px; border-style: solid; border-color: #5492D9; background-image:url('images/61.jpg');} .word-box img{opacity:0.4;} BUt image doesn't display transparent.What is wrong in my code?Thanks
  12. girl

    PHP help

    Yeah, thank you. I did just so, and it works.THanks
  13. girl

    PHP help

    OK, here t is:menu.php <form action="page.php" method="get"> <?php include ("connect-db.php"); session_start(); mysql_select_db("db-name", $con); $id=mysql_query("SELECT * FROM tour_programs") or die($id."<br/><br/>".mysql_error() ); $row= mysql_fetch_array($id); echo '<a href="page.php?id='. $row['id'] .'">'.$row['tour_name'].'</a>'; echo "</br>"; ?> </form> page.php <?phpinclude ("connect-db.php");mysql_select_db("db-name", $con); $var=mysql_query("SELECT * FROM tour_programs where id='".$_GET["id"]."' ");$row= mysql_fetch_array($var);if($var === FALSE) { die(mysql_error()); // TODO: better error handling}echo '<p>'.$row['tour_name'].'<br/>';echo '<p>'.$row['description'].'<br/>'; ?>
  14. girl

    PHP help

    Thank You very much.You know I have tried it, but I don know why when in menu.php I write echo '<a href="page.php?id='. $row['id'] .'">'.$row['title'].'</a>';it echoes only the first record of database, though I have a lot there.
  15. girl

    PHP help

    Hello people.Happy New Year.I started new year with learning php, but there is something I need, but still don know. I have a table in database with records, and I want to have links in a page: link 1link 2...link n when I click on link 1, it selects and outputs the record with id1, link 2-with id 2 and so on.Will you please advice me a way to do it.Thanks for advance.
  16. girl

    Javascript time

    thank you.. I will try it now
  17. Hello ppl.I want to make a clock in my site, but it must show time in a different timezone.How can I do that?THanks
  18. Hello ppl. I have a question.I want to have usual menu... but when I click on menu item, body background-image is changed. It is like a:hover a:activethe background image is different.. Is it possible with css.Thanks
  19. girl

    Screen resolution

    Hello people.I need help. I making web page when there is logo. It must be in center. But in different computer, means with different screen resolutions, it looks in different places. I did position=relative, i thought it will solve the problem, but no. What to do??
  20. girl

    FOR loop

    Hi ppl...I have a question I wanna echo letter a,b,c,d...z When I do for ($i = 'a'; $i < 'z'; $i++)it echoes a-y, without z.... when : for ($i = 'a'; $i<= 'z'; $i++) it echoes: a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac.....yv yw yx yy yz So how to do?
  21. girl

    z-index

    No. it's only with negative.
  22. girl

    z-index

    Compare to what??? When I insert image without z-index. it looks normal, whne i add Z-index... becomes not so bright, shadowy. Code is very simple: in html file<img src="images/homapage.jpg" class="homeimage"> in css file .homeimage {width:920; height:420; position:absolute; top:10px; border-radius:30px; -moz-border-radius:30px;-webkit-border-radius:30px; z-index:-1;}
  23. girl

    z-index

    Hi people.I need help.When I use "z-index=-1" for writing text on image, image becomes shadowy.Why? What can I do???Thanks
  24. girl

    UNclickable links

    Hi people. I wanna make links, that are unclickable after first click(first time u click, after it becomes unclickable).I tried with css:a:visited { pointer-events: none; cursor: default; }But doesn't work.Any suggestions? Thanks
  25. girl

    str_replace

    THanks for r eply...I better copy code I think <?php echo "letter: ".$_GET['var']. "</br>"; $word=array("h", "o", "u", "s", "e");echo $word[0].$word[1].$word[2].$word[3].$word[4]."</br>"; $code=array("t", "a", "b", "l", "e");echo $code[0].$code[1].$code[2].$code[3].$code[4]."</br>";$code_string=implode(" ",$code);$count=count($code);echo "Count= ".$count."</br>"; $i;for($i='a'; $i<'z'; $i++){echo "<a href=\"new.php?var=".$i."\">".$i." "."</a>";} //check if there is th letterif (in_array($_GET['var'], $word)){echo "</br> Matches </br>"; //find the position of the letter in $word$position=array_search($_GET['var'],$word);echo $position."</br>"; /*echo $code[$position] ."->".$_GET['var']."</br>";*/ //replace in $code $replace=str_replace($code[$position], $_GET['var'], $code);echo $replace[0].$replace[1].$replace[2].$replace[3].$replace[4]."</br>"; }else {echo "</br> Does not match </br> ";echo $code[0].$code[1].$code[2].$code[3].$code[4]."</br>";} ?> it's this... i don know how to continue next steps...
×
×
  • Create New...