Jump to content

kamal213

Members
  • Posts

    198
  • Joined

  • Last visited

Posts posted by kamal213

  1. This is my problem..below.

    <table>

      <tr>

        <td><p>safnwieuncv78923n</p>

        <p>7p48837oqnv8o3nijenvioulnvruionv</p>

        <p> oiuawneviuanewviouanweviouanweviouawenviouweavnui wean</p>

        </td>

        <td>abcd</td>

      </tr>

    </table>

     

    I would like abcd to be at the top same level as <p>safnwieuncv78923n</p> Not on the center of the page

  2. Hi guys,

     

    I have a table and with information on the <td> tag. The problem is some columns have large text and some have little but the size of all columns ends up being the same size as the column with the largest text.

     

    Is there a way to make it so the size of the columns depends on the size of the text.

     

    Thanks

  3. gristoi if you were a chick i'd marry you right now! lol

     

    You last post is exactly what I was looking for!

     

    Thanks aswell neil.johnson especially for correcting gristoi's error but for now I need the uk date format.

     

    Thanks guys for your help I taught I would be really complicated but you both made it look simple.

     

    Problem Solved!

  4. The truth is I don't need it to post to my db at all, only to used the value to select.

     

    This is what i've tried to do which didn't work. Can you spot my problem?

     

    <?php 
    			include "leadscript/connect_to_mysql.php"; 
    			$canvass_name="";
    			$sql = mysql_query("SELECT * FROM csj_canvasser");
    			$appointmentCount6 = mysql_num_rows($sql); // count the output amount
    			if ($appointmentCount6 > 0) {
    			while($row = mysql_fetch_array($sql)){ 
    			$c_employee = $row["c_employee"];
    			$canvass_name .='<option value="' . $c_employee . '">' . $c_employee . '
    			</option>';
    						 }
    						}
    
    
    			?>
                    <form action="addnew_leads.php" enctype="multipart/form-data" name="addform" id="addform" method="post">
                    <select name="c_employee" id="c_employee">
                    <option value="">Select a person:</option>
                    <?php echo $canvass_name; ?>
                    </select>
                    </form>
                    <?php 
    
    			if (isset($_GET['c_employee'])) {
    
    			$c_employee = $_GET['c_employee'];
    			$sql = mysql_query("SELECT * FROM customer WHERE c_employee ='$c_employee' LIMIT 1");
    			$customerMatch = mysql_num_rows($sql); // count the output amount
    			if ($customerMatch > 0) {
    				while($row = mysql_fetch_array($sql)){ 
    					 $c_employee = $row["c_employee"];
    					 echo '' . $c_employee . '';
    
    			}
    			}
    			 exit();
    		}
    		?>

  5. Hi guys,

     

    I've got this php script which display the users of my database in a dynamic dropdown:

    <?php 
    			include "leadscript/connect_to_mysql.php"; 
    			$canvass_name="";
    			$sql = mysql_query("SELECT * FROM csj_canvasser");
    			$appointmentCount6 = mysql_num_rows($sql); // count the output amount
    			if ($appointmentCount6 > 0) {
    			while($row = mysql_fetch_array($sql)){ 
    			$c_employee = $row["c_employee"];
    			$canvass_name .='<option value="' . $c_employee . '">' . $c_employee . '
    			</option>';
    						 }
    						}
    
    
    			?>
                    <form>
                    <select name="c_employee">
                    <option value="">Select a person:</option>
                    <?php echo $canvass_name; ?>
                    </select>
                    </form>

     

    I was wondering if there's a way I can write a code to GET value I select from the dynamic dropdown and use it to write a select query.

     

    Thank

  6. Hi guys,

     

    I have attached a screenshot of my customer management system

     

    I just need your suggestions and opinions.

     

    what do you think about how I split leads (this means customers) on the content section of the homepage, its not a problem I was just wondering if you would do it differently as am always looking for improvement

     

    [attachment deleted by admin]

  7. Thanks webSyles It works now!!!!!

     

    I was doing:

    $query_for_result=mysql_query("SELECT * FROM customer ORDER BY id WHERE c_name like '%".$query."%' OR c_telephone like '%".$query."%' OR c_address like '%".$query."%'");

     

    Instead of

    $query_for_result=mysql_query("SELECT * FROM customer WHERE c_name like '%".$query."%' OR c_telephone like '%".$query."%' OR c_address like '%".$query."%' ORDER BY id ");

     

    MY MISTAKE thanks for you help webstyle!! Problem SOLVED!

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