Porkie Posted March 6, 2010 Share Posted March 6, 2010 i have a form which i want to be able to put pictures behind, how can i do this ?, Cheers in advance Quote Link to comment Share on other sites More sharing options...
ialsoagree Posted March 6, 2010 Share Posted March 6, 2010 You mean, in the background of the form while people are filling it out? This would be a CSS question, but I believe you're looking for the background-image style property. http://www.htmlref.com/ Quote Link to comment Share on other sites More sharing options...
Porkie Posted March 7, 2010 Author Share Posted March 7, 2010 the problem is a want to load multiple images from the database to show in the background behind my form <style type="text/css"> <!-- body { background-image: url(imagelocation); } --> </style> could i load multiple images using this function or would i need a different one? cheers Quote Link to comment Share on other sites More sharing options...
fantomel Posted March 7, 2010 Share Posted March 7, 2010 the problem is a want to load multiple images from the database to show in the background behind my form <style type="text/css"> <!-- body { background-image: url(imagelocation); } --> </style> could i load multiple images using this function or would i need a different one? cheers i think this might help you out. click here for the tutorial Quote Link to comment Share on other sites More sharing options...
Porkie Posted March 7, 2010 Author Share Posted March 7, 2010 i looked through and created a file like said on the link, where is the problem here? <?php header("Content-type: text/css; charset: UTF-8"); error_reporting(E_ALL); include('conn.php'); $sql = "SELECT * FROM fsdf_image"; $sql2 = mysql_query($sql); echo '<table><tr>'; while ($row = mysql_fetch_array($sql2)) { echo '<td>'; echo '<img src="/uploads/'.$row['image'].'/default.jpg"width=60" height="50" />'; } ?> error code <table><tr><br /> <b>Warning</b>: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/public_html/css/supercharged.php</b> on line <b>8</b><br />/quote] any help will be greatly appreciated Quote Link to comment Share on other sites More sharing options...
fantomel Posted March 18, 2010 Share Posted March 18, 2010 i looked through and created a file like said on the link, where is the problem here? <?php header("Content-type: text/css; charset: UTF-8"); error_reporting(E_ALL); include('conn.php'); $sql = "SELECT * FROM fsdf_image"; $sql2 = mysql_query($sql); echo '<table><tr>'; while ($row = mysql_fetch_array($sql2)) { echo '<td>'; echo '<img src="/uploads/'.$row['image'].'/default.jpg"width=60" height="50" />'; } ?> error code <table><tr><br /> <b>Warning</b>: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/public_html/css/supercharged.php</b> on line <b>8</b><br />/quote] any help will be greatly appreciated i don't see any error in the code have you checked if you have any data in the table? does the table exists? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.