Jump to content

freaker87

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

freaker87's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi all i have made php based program now i want to add a login system so there's any kind of simple, easy and free code available on any site which i can use thnx
  2. use this in php $email( is a variable contain value of email field) if(!$email == "" && (!strstr($email,"@") || !strstr($email,"."))) { echo "<h2>Use Back - Enter valid e-mail</h2>\n"; $badinput = "<h2> NOT submitted</h2>\n"; echo $badinput; }
  3. <?php echo '<tr> <th>other1</th> <th>other2</th> <th>other3</th> <th>other4</th> <th>other5</th> <th>other6</th> <th>M.no</th> <th>letter1</th> <th>letter2</th> <th>number1</th> <th>number1</th> <th>Qty</th> </tr>'; $qry = "select * from table"; $result= mysql_query($qry,$link); $nro=mysql_num_rows($result); while($row = mysql_fetch_array($result1)) { $other1 = $row['other1']; $other2 = $row['other2']; $other3 = $row['other3']; $other4 = $row['other4']; $other5 = $row['other5']; $other6 = $row['other6']; $mno = $row['mnubmer']; echo '<tr> <td>'.$other1.'</td> <td>'.$other2.'</td> <td>'.$other3.'</td> <td>'.$other4.'</td> <td>'.$other5.'</td> <td>'.$other6.'</td> <td>'.$mno.'</td>'; $qry1 = "select * from table1 where other1='$other1'"; $result1= mysql_query($qry1,$link); $nro1=mysql_num_rows($result1); $ccnt = 1; while($row1 = mysql_fetch_array($result1)) { $letter1 = $row1['letter1']; $letter2 = $row1['letter2']; $qty = $row1['quality']; if($ccnt == 1) { echo '<td>'.$letter1.'</td> <td>'.$letter2.'</td>'; } else { echo '<tr> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'.$letter1.'</td> <td>'.$letter2.'</td>'; } $qry2 = "select * from table2 where other1='$other1'"; $result2= mysql_query($qry2,$link); $nro2=mysql_num_rows($result2); $row2 = mysql_fetch_array($result2); while($row2 = mysql_fetch_array($result1)) { $number1 = $row2['number1']; $number2 = $row2['number2']; echo '<td>'.$$number1.'</td> <td>'.$number2.'</td> <td>'.$$qty.'</td></tr>'; $ccnt = 0; } } } echo "</table>"; ?> and this is the accurate code i am using and accurate field name
  4. use this... javascript code <script type="text/javascript"> function validateForm() { var x=document.forms["myForm"]["email"].value; var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } } </script> this is html code.... <form name="myForm" action="demo_form.asp" onsubmit="return validateForm();" method="post"> Email: <input type="text" name="email"> <input type="submit" value="Submit"> </form>
  5. i want to do this in css like a:hover or a:active
  6. use this table.sample { border-width: 1px; border-spacing: 2px; border-style: outset; border-color: black; border-collapse: collapse background-color: white; font-weight: normal; color: black}
  7. what is the css of active link like when somebody goes to ABOUT US page then about us color changed to red.... then going to CONTACT US page then about us color change to default and CONTACT US color change to red.... plz help i am new designer...... thnx
  8. This is my code which i am trying & Psycho i've made my table like you did..... <?php echo '<tr> <th>other1</th> <th>other2</th> <th>other3</th> <th>other4</th> <th>other5</th> <th>other6</th> <th>M.no</th> <th>letter1</th> <th>letter2</th> <th>number1</th> <th>number1</th> <th>Qty</th> </tr>'; $qry = "select * from table"; $result= mysql_query($qry,$link); $nro=mysql_num_rows($result); while($row = mysql_fetch_array($result1)) { $other1 = $row['other1']; $other2 = $row['other2']; $other3 = $row['other3']; $other4 = $row['other4']; $other5 = $row['other5']; $other6 = $row['other6']; $mno = $row['mnubmer']; echo '<tr> <td>'.$other1.'</td> <td>'.$other2.'</td> <td>'.$other3.'</td> <td>'.$other4.'</td> <td>'.$other5.'</td> <td>'.$other6.'</td> <td>'.$mno.'</td>'; $qry1 = "select * from table1"; $result1= mysql_query($qry1,$link); $nro1=mysql_num_rows($result1); $ccnt = 1; while($row1 = mysql_fetch_array($result1)) { $letter1 = $row1['letter1']; $letter2 = $row1['letter2']; $qty = $row1['quality']; if($ccnt == 1) { echo '<td>'.$letter1.'</td> <td>'.$letter2.'</td>'; } else { echo '<tr> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'." ".'</td> <td>'.$letter1.'</td> <td>'.$letter2.'</td>'; } $qry2 = "select * from table2"; $result2= mysql_query($qry2,$link); $nro2=mysql_num_rows($result2); $row2 = mysql_fetch_array($result2); while($row2 = mysql_fetch_array($result1)) { $number1 = $row2['number1']; $number2 = $row2['number2']; echo '<td>'.$$number1.'</td> <td>'.$number2.'</td> <td>'.$$qty.'</td></tr>'; $ccnt = 0; } } } echo "</table>"; ?> Here is the image what i want to do.....
  9. hi, i have mysql table like table1 table2 ----------------------- ------------------------ | A | B | | 1 | 2 | | C | D | | 3 | 4 | | E | F | ---------------------------- ------------------------ now i want to display them in html table cells(td)... like -------------------------------------------------------------------------------- A | B | 1 | 2 -------------------- C | D | 3 | 4 --------------------- E | F | ---------------------- ok i was trying this it in while looping but unable to do soo...........
  10. $qry = "select * from memaster"; $result = mysql_query($qry,$link); while ($row = mysql_fetch_array($result)) { $mid = $row['mid']; $mname = $row['mname']; } echo "<td> $mname</td>"; this is i am using......
  11. i have a mysql table which contains name like mid mname 101 AAA 102 BBB 103 CCC now i have to print this name in a html table like AAA, BBB, CCC i am getting this by while loop in a variable but when loop changes then value also change so please tell me how i get this only in one variable & print
  12. thnx but i use ............ add this line var str2 = <? echo $amt ?>; & xmlhttp.open("GET","getchemcom.php?q="+str+"&amt="+str2,true); now its workin fine... & thnx
  13. i think i have to add something here xmlhttp.open("GET","getchemcom.php?q="+str,true);
  14. how can i get value of $amt on another php page
×
×
  • 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.