Jump to content

nemesis.2002

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nemesis.2002's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can't believe I'm asking a table question but here i go. I still use tables for web design. Divs never show up the same in different browsers. So i stick with my trusty tables but I've designed this back ground that is basicly a small dotted line. It's basically 4 pixels of white and then one pixel of black and then it repeats but when i tried putting this in a table when the text expands the cells some of the pixels are lost or simply misplaced. Is their a way to make the table expand only by a certain amount of pixels if it is going to expand at all? So for example if the text takes up 10 lines i'd like the cell to expand in multiples of 4px only. <table width="160" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td></td> <td>much text here</td> <td></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table>
  2. stripslashes($str); Is $str what i', retrieving from the database or what I'm sending?
  3. So I've made this php back end for a french website on my server everything works great but on the client's server when ever he updates it adds backslashes behind quotation marks. So let's say he writes (L'amour) it'll show up in the database like this (L\'amour) is their a way to fix this?
  4. So if $text_from database is what i bring out from mysql i should do this $query = "SELECT * FROM text_fill "; $mysql_stuff = mysql_query($query, $mysql_link); while($row = mysql_fetch_row($mysql_stuff)) { $id = $row[0]; $$text_from database = $row[14]; $string_from_db = $text_from database; echo nl2br($string_from_db); print("$string_from_db"); } and that should format it properly?
  5. So i'm making a php website, this is actually my first php site this complex. But i've run into a snag. My client updates his website trough a admin page that sends all the info to a mysql database but it dosen't save the format on the way he typed it in. For example: if he presses enter twice in a row in the textarea form he wants it to go to the next line and skip a line, but what ends up happening it displays in one line. Is their a way to do this in php? So that an "enter" key stroke will generate a <br> tag or something?
×
×
  • 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.