musiclover Posted June 6, 2011 Share Posted June 6, 2011 I have an admin area that creates mobile profiles/pages but I need to be able to upload photos (up to to each created profile/page. If I can't easily configure the 8 photos to display nicely on mobile phones, then one photo would be good. CAN SOMEONE PLEASE HELP ME? Here's the html code for the form where I input the information: <form method="post"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td> <table border="0" cellpadding="0" cellspacing="0" id="id-form"> <tr> <th valign="top">Title:</th> <td><input type="text" name="title" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">#VIN:</th> <td><input type="text" name="vin" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Year:</th> <td><input type="text" name="year" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Color:</th> <td><input type="text" name="color" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Make:</th> <td><input type="text" name="make" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Model:</th> <td><input type="text" name="model" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Trimstyle:</th> <td><input type="text" name="trimstyle" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Body:</th> <td><input type="text" name="body" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Engine:</th> <td><input type="text" name="engine" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Cylinders:</th> <td><input type="text" name="cylinders" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Transmission:</th> <td><input type="text" name="transmission" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Mileage:</th> <td><input type="text" name="mileage" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Economy:</th> <td><input type="text" name="economy" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Condition:</th> <td><input type="text" name="condition" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Warranty:</th> <td><input type="text" name="warranty" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Description:</th> <td><textarea name="description" value="" class="inp-form"></textarea></td> <td></td> </tr> <tr> <th valign="top">Contact Name:</th> <td><input type="text" name="cname" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Contact Phone:</th> <td><input type="text" name="cphone" value="" class="inp-form" /></td> <td></td> </tr> <tr> <th valign="top">Author:</th> <td><select name="userid" class="styledselect_form_1"> <?php $users_query = mysql_query('SELECT * FROM users'); while($users_data = mysql_fetch_array($users_query)) { ?> <option value="<?php echo $users_data['ID']; ?>"><?php echo $users_data['name']; ?></option> <?php } ?> </select> </td> <td></td> </tr> <tr> <th valign="top">Status:</th> <td><select name="status" class="styledselect_form_1"> <option value="0">For sale (Publish)</option> <option value="1">Sold (Not published)</option> </select> </td> <td></td> </tr> <tr> <th> </th> <td valign="top"> <input type="submit" name="submit" value="Submit" class="form-submit" /> <input type="reset" value="Reset" class="form-reset" /> </td> <td></td> </tr> </table> <!-- end id-form --> </td> <td> </td> </tr> <tr> <td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td> <td></td> </tr> </form> Here's PHP code for how the information is displayed in people's mobile phone: <?php if ($data['status'] == 0) { ?> <h1><?php echo $data['title']; ?></h1> <b>Description : </b><br/> <?php echo $data['description']; ?><br/> <b>#VIN : </b><?php echo $data['vin']; ?><br/> <b>Year : </b><?php echo $data['year']; ?><br/> <b>Color : </b><?php echo $data['color']; ?><br/> <b>Make : </b><?php echo $data['make']; ?><br/> <b>Model : </b><?php echo $data['model']; ?><br/> <b>Trimstyle : </b><?php echo $data['trimstyle']; ?><br/> <b>Body : </b><?php echo $data['body']; ?><br/> <b>Engine : </b><?php echo $data['engine']; ?><br/> <b>Cylinders : </b><?php echo $data['cylinders']; ?><br/> <b>Transmission : </b><?php echo $data['mileage']; ?><br/> <b>Economy : </b><?php echo $data['economy']; ?><br/> <b>Condition : </b><?php echo $data['condition']; ?><br/> <b>Warranty : </b><?php echo $data['warranty']; ?><br/> <b>Contact Informations</b> :<br/> <b>Seller's name : </b><?php echo $data['cname']; ?><br/> <b>Seller's phone : </b><?php echo $data['cphone']; ?><br/> <?php NOTE: I have a folder called "uploads". I need to be able to upload up to 8 photos(for each new page I create) to the server, and the photos have to display on the member's page. The photos have to be organized in a table between the title and description. Quote Link to comment https://forums.phpfreaks.com/topic/238583-pls-help-me-upload-photos-to-member-pages/ Share on other sites More sharing options...
Maq Posted June 6, 2011 Share Posted June 6, 2011 In the future, please place tags around your code. Quote Link to comment https://forums.phpfreaks.com/topic/238583-pls-help-me-upload-photos-to-member-pages/#findComment-1226111 Share on other sites More sharing options...
musiclover Posted June 7, 2011 Author Share Posted June 7, 2011 Sorry. I'm new and I don't know PHP. Quote Link to comment https://forums.phpfreaks.com/topic/238583-pls-help-me-upload-photos-to-member-pages/#findComment-1226615 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.