Jump to content

powaz

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

powaz's Achievements

Member

Member (2/5)

0

Reputation

  1. maybe i need to close fail like this ?! $fh = fopen('file/'.$foto, 'w') or die("can't open file"); fclose($fh); but it's not working .... or i need to create form to next page, because this file i use in my screen ant it didn't closed?! Whats the problem !!!!
  2. no, i need delete files witch user wants to delete ... in folder files
  3. hi i need help with unlink(); I need to delete my .jpg files from folder and i'm using: " unlink('files/'.$foto); " as i understand unlink() removes only link but not delete my file ?! so i need to delete my pictures.jpg files from folder... Please help me...
  4. so what's the decision form one background i using body, for second ? ... ??? i can't use div o p ...
  5. i need to use two background pictures in my web in css for one i use: body { background-image: url(pictures/bg.jpg); background-repeat: no-repeat; background-position: left 0px; background-color: #EDEFFC; } how can i do it for 2 pictures? Thanx 4 answers
  6. i need to show my page background on flash movie how to remove it please help me. i have same suggestions but they don't work like (param VALUE="transparent".... ) thanx for answers.
  7. hi, i have css file.... .newsborder tr{ border-bottom-style: dotted; border-color:#538BFF; border-width:2px; } i need to print border in bottom of each text line... echo '<table width="400">'; while($row=mysql_fetch_array($answer)){ echo '<tr class="newsborder"><td>'.$row["tema"].'</td></tr>'; echo '<tr><td> Posted: '.$row["data"].'</td></tr>'; but then i look at it in IE there aren't borders, whats the problem ..... thanx for answers.
  8. hi i need help width search how to write query search. It should show the numbers smaller that i write in textfield like "weight <='some numbers '" please help i need it.... thanx
  9. powaz

    alert ?!

    i need help with alert... I'm filling form and i need check values like: if($date1>$date2){ echo '<script Language="javaScript"> alert("error"); </SCRIPT> '; } but then alert's the form going to next page ... ? ? i need to stay in same form... and ask for filling textfields correctly.
  10. need help with paging i have php code: $eilutes = 3; $psl_nr = 1; if(isset($_GET['page'])) { $psl_nr = $_GET['page']; } $nuo = ($psl_nr - 1) * $eilutes; $komentaras="SELECT * WHERE psalis like'%".$psalis."' and issalis like'%".$issalis."' and dID NOT LIKE'".$dID."' LIMIT $nuo, $eilutes ;"; $uzklausa=mysql_query($komentaras,$db); $i=mysql_num_rows($uzklausa); $query="SELECT COUNT(dID) AS numrows FROM kroviniai WHERE psalis like'%".$psalis."' and dID NOT LIKE'".$dID."' ;"; $result = mysql_query($query) or die('Error, query failed'); $row = mysql_fetch_array($result); $eil_sk =$row['numrows']; $max_psl = ceil($eil_sk/$eilutes); if($uzklausa){ while ($row = mysql_fetch_array($uzklausa)){ echo '<tr>'; echo '<td width="30"><div align="center"> <form action="isplestine_paieska_kroviniai.php" method="post" name="form1" onsubmit="naujaslangas(this)"> <input type="hidden" name="id[]" value="'.$row['cID'].'">'.$row['cID'].'</div></td>'; echo '<td width="100"><div align="left"><img src="flags/'.$row["psalis"].'.png"> '.$row["psalis"].'</div></td>'; cho '<td width="80"><div align="left">'.$row["isdata"].'</div></td>';.... echo '<td width="40" align="center"><input type="submit" class="mygtukai" value="info"/></form></div></td>'; } echo '</tr></table>'; } $self = $_SERVER['PHP_SELF']; for($page = 1; $page <= $max_psl; $page++) { if ($page == $pageNum){$nav .= " $page "; } else{$nav .= " <a href=\"$self?page=$page\">$page</a> ";} } $nav; ?> then I'm running page at 1-st time paging is ok, but i'm have the form in same page(search), so then I'm doing search paging wrong... so i thing i need to get another header like (my.page.php) but i don't know haw to do please help me !!!!
  11. need help with paging.... <?php function one(){ //on loading page doing search of all values and doing pagging $rowsPerPage = 20; $pageNum = 1; if(isset($_GET['page'])) { $pageNum = $_GET['page'];} $offset = ($pageNum - 1) * $rowsPerPage; $query = " SELECT * FROM company LIMIT $offset, $rowsPerPage"; $result = mysql_query($query) or die('Error, query failed'); while($row = mysql_fetch_array($result)) { echo $row['name'] . '<br>';} } function second(){ //on submiting form - searching information and doing wrong paging... $rowsPerPage = 20; $pageNum = 1; if(isset($_GET['page'])) { $pageNum = $_GET['page'];} $offset = ($pageNum - 1) * $rowsPerPage; $uzklausa1="SELECT * FROM company WHERE name like '%".$name."%' and code like '%".$code."%'and city like '%".$city."%'" LIMIT $offset, $rowsPerPage";; $result = mysql_query($query) or die('Error, query failed'); while($row = mysql_fetch_array($result)) { echo $row['name'] . '<br>';} } ?> one reload page i using function one()... doing paging, on this page also i have form, and then i submiting this form - search. when i doing search, values in first page of paging are ok, but then i want to go to second ect pages i'll get back the values of function one() (the values of previously page). I thing its $_GET['page'] problem, because it gets the last value of page from function one() paging;, on function second() i need to get clean url line i think of something like that ??? May be you have some ideas haw to do this, or you know the better scripts of paging. Thank you form your answers. Have a nice day.
  12. hmm... yes but problem not in this... then i press submit1 or submit2 only one form is active the first one... i need the both form active
  13. this is the code of 2 forms: echo '<form name="form1" action="form1.php" method="post">'; echo '<input type="submit" name="submit" value="Form1">'; echo '<form name="form2" action="form1.php" method="post">'; echo '<input type="submit" name="submit" value="Forma2">'; echo '</form name="form2"></form name="form1">'; then i submiting form1 it going to form1.php, but if i submiting form2 it go to same form1.php how to solve this problem what each form must go to its action? All ideas are welcomed Have a nice day.
  14. i need send information form two different forms in to one .php page and then returning information to my page which i used to send information. what should i use include i think is not ok... may be something like self ? do you have same good suggestion ?! Thanx 4 answers.
  15. this replay wasn't for you i know this script 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.