Jump to content

landavia

Members
  • Posts

    140
  • Joined

  • Last visited

    Never

Posts posted by landavia

  1. please read text tag u type

     

    <input type="text" width="30" name="userdate" /><

     

    and read textarea

    <textarea rows="4" cols="100" id="q1" /></textarea>

     

    what the diferent betwen 2?

    BLOCK this one have name but not the other one and "name" was not include in textarea^^

     

  2. <form action="<?php echo $editFormAction; ?>" method="POST" name="form1" style="margin:0px;" >
                        <table width="100%" border="0" cellspacing="0" cellpadding="1">   <?php // table 4 ?>
                     <tr valign="baseline">
                            <td width="30%" height="20" align="left" class="lbtxt">Select Device  : </td>
                     </tr>                          
                   </table>
                        <table width="100%" border="0" cellspacing="0" cellpadding="1">
                     <?php 
                          for ($i=0;$i<sizeof($darr);$i++) {  ?>
                             <tr> <td width='25%'></td>
                           <td width='75%' class='intxt' align='left'>
                           <input type="checkbox" name="box[]" value="<?php echo $darr[$i];?>"><?php echo $narr[$i]; ?></td>
                           </tr>                                       
                                   <?php } // closing for loop
                            ?>
                   </table>
                        <table width="100%" border="0" cellspacing="0" cellpadding="1">
                          <tr valign="baseline">
                            <td width="25%" height="20" align="right" class="lbtxt">Selection Criteria : </td>
                            <td width="75%" height="20" class="intxt">
                              <input name="m_status" type="radio" value="a" checked>
                              Available
                              <input type="radio" name="m_status" value="p">
                              Pending</td>
                          </tr>
               </table>
                        <table width="100%" border="0" cellspacing="0" cellpadding="1">
                          <tr valign="baseline" class="wntxt">
                            <td colspan=2 height="20" class="wntxt"> <?php echo "Note : ".$errmsg; ?></td>                       
                     </tr>
                   </table>
                        <hr size="1" noshade class="whiteBox">
                   <?php // if (empty($errmsg)) { ?>
                        <input type="submit" name="Submit" value="Go"> <?php // } ?>
                        <input type="button" name="Submit" value="Return" onClick="window.history.back();">
                        <input type="button" name="Submit" value="Cancel" onClick="window.location='main-menu.php'">       
                      <input type="hidden" name="MM_insert" value="form1">
                      </form></td>

    here goes the neighood

    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
    
      for ($i=0;$i<count($_POST['box']);$i++) {
    
      }
    }

    why use count? use sizeof()

  3. hi there I tried 2 solve ur problem but ur code isnt clear so pls post the code again  ;)

    <div align="center"><?php
    echo '<title>'.$site_title.' - Home</title>
    <table width="80%" >
       <tr valign="center"><div align="center">
          <td class="windowbg" width="100%">
    <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border">
             
                   <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td>
                </tr><tr>   
                   <td class="windowbg3">
                   <form action="index.php?action=login&sub=1" method="post">
                   <table width="100%" cellspacing="1" cellpadding="4" border="0">
                   
                         <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br>
                   </table>
                   </form>
                   </td>
                </tr><tr>
                   <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a>
                </tr>
          </table>
    
    <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border">
                <tr>
                   <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td>
                </tr><tr>   
                   <td class="windowbg3">
                   <form action="index.php?action=login&sub=1" method="post">
                   <table width="100%" cellspacing="1" cellpadding="4" border="0">
                   
                         <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br>
                   </table>
                   </form>
                   </td>
                </tr><tr>
                   <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a>
                </tr>
          </table>
    <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border">
                <tr>
                   <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td>
                </tr><tr>   
                   <td class="windowbg3">
                   <form action="index.php?action=login&sub=1" method="post">
                   <table width="100%" cellspacing="1" cellpadding="4" border="0">
                   
                         <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br>
                   </table>
                   </form>
                   </td>
                </tr><tr>
                   <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a>
                </tr>
             </table><div align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0">
       <tr valign="center">
          <td class="windowbg" width="100%">
    <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border">
                <tr>
                   <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td>
                </tr><tr>   
                   <td class="windowbg3">
                   <form action="index.php?action=login&sub=1" method="post">
                   <table width="100%" cellspacing="1" cellpadding="4" border="0">
                   
                         <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br>
                   </table>
                   </form>
                   </td>
                </tr><tr>
                   <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a>
                </tr>
             </table>
    
    
             
                 </td>
             </tr>
    
    </table>';
    ?> 

    what a waste of time.. i don't want to answer too

     

    let's solve this and lock the topic..

    1 think i should say to TS..

     

    i believe.. to many table HERE.. and You confuse for you own table?!!!

     

    let's change subject.. instead using table

    <table>
    <tr>
    <td>block 1</td>
    <td>block 2</td>
    <td>block 3</td>
    </tr>
    </table>

    i have same problem and want to use div

     

    <div>
        <div>Block 1</div>
        <div>Block 2</div>
        <div>Block 3</div>
    </div>

    *i was see in wikipedia.. they only use DIV!!!

  4. yap..

    because of this

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="form.css" rel="stylesheet" type="text/css" />
    <title>instruments.php</title>
    </head>
    <body>
    <link href="form.css" rel="stylesheet" type="text/css" />

    the header not work.. u should try to not place HTML before the header.. or using ob_start()

  5. wakakakaka.. i'm a fool.. in here..

    if you laugh to me.. i will accept it

     

    >>$pic_code = mysql_fetch_array($Photos);

    this goes line before while($row=mysql_fetch_array($Photos))

    and below is always repeating again and again..

    TS should type this

    <?php 
    $CatID = $_REQUEST['CatID'];
    $Photos = mysql_query("SELECT ID, Title, ImageURL, CatID, Details FROM Photo WHERE CatID='$CatID'", $connection) or die("error querying database");
    $rows_nb = mysql_num_rows($Photos);
    
    
    $pic_num = 0;
    $pic_code = mysql_fetch_array($Photos);
    
    echo '<table width="75%" border="0" align="center">'; 
    
    while($row = mysql_fetch_assoc($Photos))
    { 
    $pic_code =$row; //wakakaka... this is the problem
    echo '<tr>'; 
    
    for ($tb_rows=0;$tb_rows<3;$tb_rows++) 
    
    {
    
    if ($pic_num < $rows_nb)
    
    { 
    
    echo '<td><div align="center"><img src="'.$pic_code['ImageURL'] .'" border="1" /></div></td>';
    
    $pic_num++;
    
    
    }else{
    
    echo '<td></td>';
    
    }
    
    } 
    
    echo '</tr>'; 
    
    } 
    
    echo '</table>';
    ?>

    i think i know what TS want.. but the above replies is the correct ^^

     

  6. Don't using addslashes.  Use htmlentities on the way into your db and you won't have this problem at all.

     

    That may be an option, but still doesn't answer my question. Why isn't addslashes working?

    i suspect.. PHP version

    are u use PHP 4 or 5.. and if able the version detail

    (4.2.3???)

  7. I have a database file with about 10k email addresses.  Is it good to have a php program to scan through the database 1 record at a time and do the mail() for each record?  Is there a better way to do this?

     

    Regards,

    DED

    no.. that would be same as BOMB MAIL if you do that..

    but if the reason are reasonable.. that's perhaps do

  8. the above script supplied sorta worked in a way that it would display the messages, but not when they should've. Also if the users renewal date wasn't within the time period, it also displayed a message that couldn't redo headers

     

    Just prior to getting a notification of the script you had provided, I got this to work, and it works EXCEPT that on first login, doesn't display the message until the user clicks another link

     

    <?

    $todays_date = date("Y-m-d");

     

    if ($todays_date == $euRenewal)

    {    echo "Your membership renewal is due TODAY!"; }

    ?>

     

    So that seems relatively basic, just need the 30 days before and after and then 31 days after expired, so where can the snippet above go to help?

    wait a moment..

    i convert the date into integer.. and that's make everything easy i think

    what the next problem?

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