Jump to content

jackpf

Members
  • Posts

    1,410
  • Joined

  • Last visited

    Never

About jackpf

  • Birthday 02/01/1993

Contact Methods

  • Website URL
    http://www.jackpf.co.uk

Profile Information

  • Gender
    Male
  • Location
    UK

jackpf's Achievements

Member

Member (2/5)

1

Reputation

  1. UPDATE table SET field=MD5(field)
  2. Use absolute referencing like you said, using $_SERVER['DOCUMENT_ROOT']. What is your code and file structure?
  3. Not entirely sure what you mean but somethin like this for($i = 0; $i < howmnylinesyouwnt; $i++) { echo '<tr><td>table row</td></tr>'; if($i % 3 == 0) { echo '<br />'; } } Althouh why you want a line break outside a table cell doesn't mke sense to me. And I doubt it's valid html.
  4. div .mainnav a { color: orange; }
  5. That single quote is supposed to have a backslash btw. Stupid code highlighter must have stripped it.
  6. UPDATE TABLE SET field=REPLACE(field, '&rd', '\'')
  7. Probably missed a semi colon in the line above.
  8. If that is indeed the case then you'll want to make use of $_GET.
  9. <?php $i = 10000000; $i = (string)$i; if(strlen($i) >= 6 && strlen($i) <= { echo substr($i, 0, strlen($i) - 6).'million'; } ?> You mean like that?
  10. Try putting or die(mysql_error()) after the query.
  11. Doesn't this happen by default? I'd have thought that you actually have to do something to prevent this. Enabling it requires nothing. Just check user info against the database. If it's correct, log them it. That has nothing restricting them from logging in on multiple PCs.
  12. Ugh...just woke up. Ignore me.
  13. Surely you don't need the while() loop. $SQL_selectOptions = "SELECT optionID, optionName, optionPrice FROM options"; $rs_selectOptions = mysql_query($SQL_selectOptions, $admin); $row_selectOptions = mysql_fetch_assoc($rs_selectOptions) Then $row_selectOptions will have all of the results in an array. Doesn't your while loop just kind of...put it into another array? Thus isn't needed. Forgive me if I am wrong Oh, and also, in your original code, $Name is not $name. You need to be careful with cases.
×
×
  • 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.