Jump to content

girl

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by girl

  1. 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. :)

  2. 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

  3. 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 :)

  4. 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/>'; ?>

  5. 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.

  6. 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.

  7. 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

  8. 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??

  9. 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?

  10. 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;}

  11. 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 :)

  12. 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 :)

  13. 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...