Jump to content

Mattyspatty

Members
  • Posts

    76
  • Joined

  • Last visited

About Mattyspatty

  • Birthday 01/06/1989

Contact Methods

  • MSN
    mattyspatty@hotmail.com

Profile Information

  • Gender
    Male
  • Location
    England :D

Mattyspatty's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i didnt exaplin properly... $mxservers[$i] becomes an int, string or whatever type $pref is, this then means that $mxservers[$i]->host does not exist as it is not an object.
  2. people dont like to do code for you. function rname($dirpath,$oldFileName,$newFilename) that is a step in the right direction, its just a case of renaming variables to work with the functions input. if you have a try but have errors or cannot seem to get it working correctly then post again and people will take a look
  3. you need to name your check boxes like an array. <input name="fave[A]" type="checkbox" value="true"> <input name="fave[b]" type="checkbox" value="true"> <input name="fave[C]" type="checkbox" value="true"> for the POST you should use a foreach to read through each submitted value if(isset($_POST['fave'])) { foreach($_POST['fave'] as $id=>$value) { echo $id."<br/>"; } } if i checked box A and box C then i would get the output A = true B = true where A is the index array and true is the value of the checkbox (in your case, $page) hope this helps. let me know if i misunderstood your question or need more help
  4. while ($row=mysql_fetch_assoc($result) missed a second ) and reguarding to the original problem, this should have your desired effect <?php $i=0; echo '<table>'; while ($row=mysql_fetch_assoc($result)) { if($i==0) echo '<tr>'; echo '<td>'; // do rest of column echo '</td>'; if($i==2) { echo '</tr>'; $i=0; } else { $i++ } } echo '<table>'; ?>
  5. this is an error of trying to assign a property of an object that does not exist (as the error suggests) assuming the error is on this page (without page name and line numbers its hard to tell). $mxservers[$i] = $pref; $mxservers[$i]->host = $host; this is the probably problem, because $pref is not an object/class and $mxservers will become the same type as $pref. (string, int etc.) perhaps you intended this: $mxservers[$i]->pref = $pref; $mxservers[$i]->host = $host;
  6. $check = mysql_query("SELECT * FROM phaos_users UID='$userid'") you missed a WHERE
  7. let me clarify, you want a table something like this: RES_1 RES_2 RES_3 RES_4 RES_5 RES_6 where RES_* is a new row from the database?
  8. you can run an SQL query that should achieve all that for you using http://dev.mysql.com/doc/refman/5.0/en/join.html. its been a while since ive used it so try asking in the MySQL forums.
  9. oh sorry i slightly misunderstood your question. i think the simplest way is to just use the if statements.
  10. try <input type="text" name="username" value="<?php echo $_POST['username'];?>"> if username is not set then it will be an empty text box
  11. also consider using this function http://uk.php.net/manual/en/function.htmlspecialchars.php
  12. what exactly is the problem? ***EDIT*** was only showing the qoute :/
  13. the "Oops page not found" error means that your page does not exist in the place your looking for it (perhaps a spelling mistake?) check your pages are in the correct place and spelt correctly
  14. if you are using an array in the form (headquaters[]) then look into using foreach to retrieve all of the values.
  15. its something to do with the characterset of your browser. i think you can resolve it by using the HTML code for it. try £ or &pound
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.