Jump to content

coder500

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Everything posted by coder500

  1. How can I fix the width of a table? I am using style sheet. Its content is as follows. #leftBorder { height: 100%; width: 125px; left: 0px; top: 0px; padding: 0px; background-position: top; background-image: url(images/slicepx6_02.gif); background-repeat: repeat-y; } #rightBorder { height: 100%; width: 111px; left: 0px; top: 0px; padding: 0px; background-image: url(images/slicepx6_04.gif); background-repeat: repeat-y; } #maintable { height: 100%; width: 800px; left: 0px; top: 0px; padding: 0px; } #contenttable { height: 100%; width: 564px; left: 0px; top: 0px; padding: 0px; } But when I add more content to the column with the id "contenttable" it expands. Is there any way to fix it, so that when I add spaces and content the width remains same and the text goes to the next line automatically. Any help please...
  2. If we use md5, it can't be decrypted, right?
  3. Is there any way to encrypt information like email id,names, and payment information entered by the visitors and store them into database? I want a method to download the data also? Is it possible? Any suggestions/help?
  4. You haven't set subject and message anywhere...
  5. wildteen88 is correct. It seems you want a visitor to query your database. In that case, u need not give them username and password. You write the code for connection. this connection and query statement must be executed, once the visitor enters details like username or when the visitor presses any button...
  6. You forgot to close elseif ($_POST && $mailSent) {, So please close it try again, it will work. Also action attribute of form needs to be set.
  7. According to PHP manual, The mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the ยป PEAR::Mail, and PEAR::Mail_Queue packages.
  8. I am capturing username and email id. I want to verify client's email id before sending the report. So before sending the report I like to send a verification link to the mail id provided. I am not clear how I can achieve it. I tried $name=$_POST['name']; $body = "Click On this link (http://www.worth2read.org/test/PhpMaile ... .php?$name to verify your mail Id"; But the mail I am getting is as follows : Click On this link (http://www.worth2read.org/test/PhpMaile ... onfirm.php? to verify your mail Id . That means the captured name is not passed. Any help?
  9. I want to place a text-file on the server so that it can be edited and updated. The contents of this text file need to be scrolled within a box on a web page. Is there anyway possible so that I can write the .txt document in html format, so that headings can be in bold or someother formatting I can apply. The code I have used is as follows. $file = fopen("welcome.txt", "r") or exit("Unable to open file!"); echo '<center>'; echo '<table bgcolor="#efefef" width="500"><tr><td>'; echo '<textarea name="stuff" cols="60" rows="10">'; while(!feof($file)) { echo fgets($file); } fclose($file); echo '</textarea><br>'; echo '</td></tr></table>'; The problem is if I write html code it will come as html. For example if I write <a href="">Check</a> it will appear in the textarea as <a href="">Check</a> and not as a link. Any help, please...
  10. Just came across a tutorial on this. I haven't tried it, but it seems it will work and will be helpful for u. http://www.ip2location.com/faqs-ip-country.aspx What it does is converting an ipaddress to ipnumber. Then it searches a database using that ipnumber to find out the location. It seems the database is free.
  11. If you want a free PHP script you will get it here http://www.hotscripts.com/Detailed/54660.html
  12. $sql = "SELECT * FROM bosses ORDER BY id DESC limit 0,1" ; will return the last record(most recently added record). P.S Relational database theory states that row order in a database is not guaranteed. Some database engines may add rows that are physically where you would expect them to be, but others may not, and deletions or updates may affect this order, too. The point is this: you should always select records based on the data that is contained in the records, never on what you assume is the order of the records on the storage device.
  13. Can anyone please tell whether the above statement is correct. If so why? Because we can access mail id from database using for loop/while loop , and we can set $to="mail id from database" and use mail() function. Thanks
  14. Hi All, Thanks for the hints. I fixed it. Dark Water, is it wrong to use for loop in mysql resul? Thanks
  15. I tried that. But the id is always 1, irrespective of the record.
  16. xstevey_bx , Does it mean that I have to add a field named 'id' to the table?
  17. I am displaying the contents of a table. The contents are displayed in a for loop. On each row, I put 2 buttons also--- Update and Delete. I am not getting an idea how we can select the record if I press delete button near a record. for( $i = 0; $i < $row = mysql_fetch_array($result); $i++) { echo "<tr><td>"; echo $row['keyword']; echo "</td>"; echo "<td>"; echo $row['app_date']; echo "</td>"; echo "<td>"; echo $row['phno']; echo "</td><td>"; <form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" > </td><td><input type="submit" name="delete" value="Delete" /></td></tr> Any help please?
  18. See this tutorial regarding this. It worked for me. http://www.worth2read.org/php_tutorial8.php You can enter the number of files to be uploaded, then you can select the files and upload them to the server..
  19. The following code will display the number of lines in a .txt file <?php $file = "welcome.txt"; $lines = count(file($file)); echo "There are $lines lines in $file"; ?>
  20. The following code will work while($row = mysql_fetch_array( $result )) { echo $row['name']; echo "<img src='$row[image_link]'><br>"; } Let me know the result...
  21. Thanks for the reply. So no other way to know when he closes the window?
  22. Hi Is there any way to capture the time a visitor ends his visit on the website ( That is the time when he leaves the page(hitting back button or closing the window)) Thanks http://www.worth2read.org/
×
×
  • 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.