Advertisement
Guest User

Untitled

a guest
Mar 30th, 2012
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. 1)
  2. <html>
  3. <table style="border-collapse:collapse; width:350px;">
  4. <tr>
  5. <td style="border: 1px solid #000;">Col1</td> <td style="border: 1px solid #000;">Col2</td> <td style="border: 1px solid #000;">Col3</td> </tr>
  6. <tr>
  7. <td style="border-left: 1px solid #000; border-right:1px solid #000;" >&nbsp;</td> <td colspan="2" style="border-left: 1px solid #000; border-right:1px solid #000; border-bottom:1px solid #000;">&nbsp;</td> </tr>
  8. <tr>
  9. <td style="border-left: 1px solid #000; border-right:1px solid #000; border-bottom: 1px solid #000;"">&nbsp;</td> <td style="border: 1px solid #000;">&nbsp;</td> <td style="border: 1px solid #000;">&nbsp;</td>
  10. </tr>
  11. </table>
  12. </html>
  13.  
  14. 2)
  15. a) Absolute allows you to position elements without regards to the position of other elements. It is useful to ensure elements are exactly where you want them to display.
  16. b) Relative is the standard position for elements. It takes into consideration where other elements are on the page. It is useful especially when you have objects that are dynamic in width or height, and want to ensure correct positioning.
  17. c) Use a container div equal to your desired width and the CSS propert text-align:center, and any child divs will be horizontally centered.
  18.  
  19. 3)
  20. <input type="text" id="username" />
  21.  
  22. <input type="button" id="submit" />
  23.  
  24.  
  25.  
  26. <script type="text/javascript">
  27. $("#submit").click(function() {
  28. alert("I am an alert box!");
  29. }
  30. }
  31. </script>
  32.  
  33. 4)
  34. He plays $sport
  35.  
  36. 5)
  37. Table - Students: ID, Name, Semester, Year, Score
  38.  
  39. 6)
  40. <?
  41. // Get failing students
  42. $sql = 'SELECT * FROM Students WHERE Score < 60 AND Semester = "Fall" AND Year = "2011" ';
  43. $sqlResult = mysql_query($sql) or die(mysql_error());
  44.  
  45. while($row = mysql_fetch_array($sqlResult))
  46. {
  47. echo "[$row['Name']] : [$row['Score']] \n <br />";
  48. }
  49.  
  50. ?>
  51.  
  52. 7)
  53. What: LEFT JOIN with return all rows from the left table, even if there are no matches in the right table.
  54. When: To identify the records in table 1 for which there is no record present in table 2. (Ex: Who hasn't ordered X product from our customers table)
  55.  
  56. 8)
  57. A syntax error is an error in the code (ex: forgetting curly brace), while a logic error is an error in logic (ex: if($x < 5 && $x > 5) { //do stuff } )
  58.  
  59. 9)
  60. MVC or Model View Controller is an all encompassing programming tool or rather a model that helps programmers and developers understand and improve the origins of the design or patterns of software. It is used to differentiate the program logic from the data and user interface
  61.  
  62. 10)
  63. I would use recursion for a binary search for a binary tree. It would make the code simpler, and easier to follow.
  64.  
  65. 11)
  66. For any pattern matching, or parsing (barring a reliable library that will accomplish this better).
  67.  
  68. 12)
  69. Writes table html to variable $result_table. If the index of the array is an even number, it will change the row background color to #b8e0b4, else it will set the background color of the column to #cdffc8. It will then output the empoyee name and salary to columns. It will also add whitespace to the html data with \t.
  70.  
  71. 13)
  72. [url]http://www.google.com/[/url]
  73.  
  74. I love that how simple their interface is, and how valid their results are when compared to recent and past search engines. I think it could be improved by prioritizing local businesses in the results.
  75.  
  76. 14)
  77. [url]http://www.d3spreadsheet.net/[/url]
  78.  
  79. I accomplished creating a website with a framework that I had never worked with before (CodeIgniter PHP Framework). I also created a decent web crawler to retrieve data from specialty websites for my website, automating a very large part of the work.
  80.  
  81. [url]http://www.pluswebhost.com/[/url]
  82.  
  83. I accomplished creating my own business in a desired niche, getting customers, expanding, and I really learned a lot of technical skills in the process.
  84.  
  85. 15)
  86. I will ask someone who I feel has greater knowledge on the specified subject, and if that fails I will use Google to find the answers I'm looking for.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement