[Solved] Link gone missing using CSS and HTML

http://rosepetals.se.temp-url.se/ I solved it using absolute positioning on the link in the CSS class woodslink .woodslink{ position: absolute; left: 370px; top: 350px; } .links { float:left; margin-left:10px; margin-right:10px; padding-left:10px; padding-right:10px; margin-bottom: 14px; background-color: #ffffff; width:260px; } <div class=”links”> <a href=”http://www.student.bth.se/~asfo13/oophp/MovieProject/Embla/webroot/home.php?p=home”><img class=”woods” src=”woods.jpg” alt=”Image from the woods”></a> <a class=”woodslink” href=”http://www.student.bth.se/~asfo13/oophp/MovieProject/Embla/webroot/home.php?p=home”>Movieproject</a> </div> 1 solved Link gone missing … Read more

[Solved] whats wrong with my this php code snippet [closed]

Try changing from this : $result = mysql_query(“SELECT email FROM subscribers WHERE email=””.$_POST[“email’].”‘”;); $num_rows = mysql_num_rows($result); if(isset($_POST[‘submit’])){ if($_POST[’email’]!=””){ if ($num_rows > 0) { echo “email already unsubscribed”; } else { $update_sql = “UPDATE subscribers SET unsubscribed = ‘1’ WHERE email=””.$_POST[“email’].”‘”; mysql_query($update_sql, $connection); echo “<div id=’notify’ style=”margin-left: auto; margin-right: auto; width: 330px; height: 40px; text-align: center; … Read more

[Solved] What’s the error in this program code? [closed]

I’d rather write a more useful and correct version of this code #include <stdio.h> int main() { int n1, n2, ans; char op; scanf(“%d %c %d”, &n1, &op, &n2); switch (op) { case ‘+’: ans = n1 + n2; break; case ‘-‘: ans = n1 – n2; break; case ‘*’: ans = n1 * n2; … Read more

[Solved] Types of SQL joins

You’re getting no relevant answers on Google because the answer is (d): None. The closest kinds of joins are left-join and right-join. 3 solved Types of SQL joins

[Solved] Swap two numbers in list of tuples (python)

For anyone curious, I quickly wrote a function for it. First off, the complete matching is written as a 2D list. The following function is needed before writing the main one: def index_2d(myList, v): #Returns tuple containing the position of v in the 2D list for i, x in enumerate(myList): if v in x: return … Read more

[Solved] Datatable while not working [closed]

No statements will be executed after return you are returning inside whlie while($row = mysql_fetch_array($query)){ return $row[name];// this is wrong } Change it to $name = array(); while($row = mysql_fetch_array($query)){ $name[] = $row[name];// assign to array } return $name;// <— return here. Also switch to mysqli_* or PDO as mysql_* is deprecated. solved Datatable while … Read more

[Solved] How can I produce a file? [closed]

The answers in the comments are more pythonic, but if you want a more easily understandable example >>> books = {} >>> line = “Calculus | James Stewart” >>> parts = line.split(‘|’) # can also do title, author = line.split(‘|’) >>> books[parts[0].strip()] = parts[1].strip() >>> print(books) {‘Calculus’: ‘James Stewart’} 1 solved How can I produce … Read more