Jump to content

grappy

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by grappy

  1. thanks, i knew their was something that needed loads of coding for html, but i thought it was javascript lol, mind if i add u on msn?
  2. <?php$con = mysql_connect("localhost","lewke_av","");if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("lewke_artex", $con);$result = mysql_query("SELECT * FROM av_update");while($row = mysql_fetch_array($result)){echo "<tr>" "<th colspan="1" height="20" class="content">""<strong>" . $row['update_person'] . "</strong>" "</th>" "<th colspan="7" height="20" class="content">""<strong>" . $row['update_date'] . "</strong>" "</th>" "</tr>" "<tr>" "<th colspan="8" height="20" class="content">""<strong>" . $row['update_title'] . "</strong>" "</th>" "</tr>" "<tr>" "<th colspan="8" height="50" class="content">""<strong>" . $row['update_c'] . "</strong>" "</th>" "</tr>"; echo "<br />";} thats the new one, but it still doesnt work, did i miss something?
  3. i used this code for my site, it worked fine but emails went to junkmail before i told them not to, lol <?phpif (isset($_REQUEST['email']))//if "email" is filled out, send email { //send email $email = $_REQUEST['email']; $from = $_REQUEST['remail']; $subject = $_REQUEST['subject']; $message = $_REQUEST['message']; $headers = "From: $from"; mail( "$email", "Subject: $subject", "$message", "$headers"); echo "Thank you for contacting us, we will reply as soon as possible."; }else//if "email" is not filled out, display a error { echo "Sorry, but the message could not be sent to $email."; }?> however this requires abit more of a complex form, it needs a email box, which has the email to send it to typed in, i made mine a drop down list so they couldnt send them to everyone they wished -.-, a from box which has the i'd remail, and replaces part of the email when sent, a subject box, and a message box, also the obvious submit button, if u make the form i made it will easily work for u 2.
  4. i comprised most of the code myself, didnt really know much about using <'s and >'s in php coding...il try this way and see if it works, if not il post here again tynope, didnt work, i guess il have to put loads of quotes in now , surrounding or just before?
  5. <?php$con = mysql_connect("localhost","lewke_av","");if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("lewke_artex", $con);$result = mysql_query("SELECT * FROM av_update");while($row = mysql_fetch_array($result)) echo { <tr> <th colspan="1" height="20" class="content"><strong> $row['update_person']</strong> </th> <th colspan="7" height="20" class="content"><strong> $row['update_date']</strong> </th> </tr> <tr> <th colspan="8" height="20" class="content"><strong> $row['update_title']</strong> </th> </tr> <tr> <th colspan="8" height="50" class="content"><strong> $row['update_c']</strong> </th> </tr> echo <br /> } ?> thats my code, it doesnt seem to work, the database name is lewke_artex and the table i want is av_update, im not really sure on what makes the code not work, i dont get any error messages at all , if any1 could help and put the code right that would be awesomeP.S, i removed the password intentionally.
  6. Well, what i was thinking was, if this would work. Is to buy a slave hdd and set up linux on it, with apache php mysql etc. would i be able to run the slave and the main hdd at the same time as both operating systems on one monitor? and can apache be set to a size limit for the web server. i dont really have much experience of setting up web servers but trying to learn and get one up and running to sell space heh
×
×
  • Create New...