-
A Footer
Thanks everyone. Resolved.
-
-
-
-
A Footer
Hey, appreciate the reply but your suggested changes do not do anything, at least for me, it actually pushes the image further up the page.
-
A Footer
I'm an idiot. My footer wont stretch horizontally ( leaves gaps at sides and at bottom of page). I know it's probably something simple but for the life of me I cant figure it out. Any help is greatly appreciated, Link below. http://rzza.atspace.com/
-
Alternative to onblur ?
Thank You !
-
-
Alternative to onblur ?
Hey guys, Ok so I have a form. On this form are two text boxes. Each text box has a value so text appears in the box. I use the onclick event handler to remove this text when the user clicks on the box, onclick="this.value = '';" I want to repopulate the textbox with text if the user clicks off it. I know the onblur event handler iniially seems like a good choice but when the form is submitted or the user selects another field on the form, text they will have entered is replaced by the value assigned by onblur and I dont want it to do this if the user has entered their own information (if that makes sense), onblur="this.value = 'Please enter your name';" I was wondering if anyone had a solution to this problem ? If anyone does not understand then please say and I will try to explain better. Thanks !
-
-
Cant click on form elements
Changed the padding to 2px, no effect
-
Cant click on form elements
Thanks ! That seems to have fixed the form obfuscation but the layout has changed. I'm not the greatest with css, can you have another look and see what you think ? The border around #form does not nest round the container and the image has moved from the blue background.
-
Cant click on form elements
Can you guys have a look at the following page and help me figure out why I cannot select form fields on any browser. I know its probably a CSS issue but I cant figure it out. I only coded the contact form so I cant make significant changes to layout. http://www.wholepersondentist.com/ Thanks !
- PHP MySQL error
-
Frustrating Error
Thanks Jay, Query Works now.
-
-
-
Frustrating Error
Updated, received syntax error. I have no idea about correct syntax .... Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Updated line $result = mysqli_query($conn,$query) or die(mysqli_error($conn));
-
Frustrating Error
Frustrating error I cant seem to get rid of. Anyone help me out ? The error Warning: mysqli_error() expects exactly 1 parameter, 0 given in /Users/labuser/Sites/dbconnect.php on line 20 The Line the error is referring to $result = mysqli_query($conn,$query) or die(mysqli_error()); Full code <?php $value = $_POST["valuelist"]; $conn = mysqli_connect('localhost', 'labuser', '') or die ("No Connection"); mysqli_select_db($conn, 'labuser') or die("test will not open"); $query = "SELECT MemberName, Age from Member where BandName = ".$value ; $result = mysqli_query($conn,$query) or die(mysqli_error()); echo "<table border='1'><tr><th>Member Name</th><th>Age</th></tr>"; while($row = mysqli_fetch_array($result)) { echo "<tr><td>" .$row[0]. "</td><td>" .$row[1]; echo "</td></tr>"; } echo "</table>"; mysqli_close($conn); ?> <form action = "query.php"> <input type = "submit" value = "return"> </form>
-
Invalid Query
Resolved. Thanks
-
Invalid Query
Can anyone tell me why this is returning an invalid Query error, from what I can see there is nothing wrong with it .... <?php $conn = mysqli_connect("localhost", "labuser", "") or die ("No connection"); mysqli_select_db($conn, "labuser") or die("test will not open"); $query = "select membername,age from MEMBERS"; $result = mysqli_query($conn, $query) or die("Invalid query"); echo "<table border='1'><tr><th>Member Name</th><th>Age</th>"; while($row = mysqli_fetch_array($result)) { echo "<tr><td>" . $row[0] . "</td><td>" . $row[1]; } echo "</table>"; mysqli_close($conn); ?>
-
Retrieval Query
Thanks Nathan. Has got me well underway. +1 .