Jump to content

XCVIII

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by XCVIII

  1. I have a row called info-body. This row contains information split up in different lines, example: Font-Family Font-Weight Font-Color Street City $Background-Color $Phone-number Now, I can echo the whole row and its then all of the info is output. But what do I need to do to echo (or fetch) only the lines that do NOT start with $ (alternatively ONLY the first 5 rows) So that when I echo the row it just outputs: Font-Family Font-Weight Font-Color Street City Right now I am using this too echo the whole row: <?php $sql="SELECT * FROM info WHERE info=\"".$info."\" AND page LIKE \"info-body\";"; require("connect.php"); for ($i=0;$i<mysql_num_rows($con);$i++) { $setter=mysql_fetch_array($erg); echo("\n".$setter['info']."\n"); } ?>
  2. I have created a form that outputs information to my mysql data. For example if I enter a value in a text field the value gets sent to the database and is stored as $example="value" There is a populated list and its set up like this: <?php $example1="value1"; $example2="value2"; $example3="value3"; $example4="value4"; $example5="value5"; $example6="value6"; ?> So far everything is working, I am able to store information in the database. However when I try to echo the information in my page it doesn't come up at all, its blank. I can however echo the whole table but then it comes up like this: <?php $example1="value1"; $example2="value2"; $example3="value3"; $example4="value4"; $example5="value5"; $example6="value6"; ?> I need to echo the values separately in a text, e.g. This is an example $example1 and this is what $example2 I need, I need to echo $example3 the values individually $example 4 etc $example5 I don't know what I'm doing wrong, echoing the whole table works with: $zeile=mysql_fetch_array($ger); echo("\n".$seile['code']."\n"); But id like to do it separately.
  3. Well it makes sense if you're trying to do what im doing. Its a CMS for a website im working on, each menu would contain forms that edit a part of the website, i.e. - one menu is for general settings, one is for css editing and so on.
  4. Can anyone recommend a good accordion menu that I could use to contain <forms> and load .phps into? For example: I have a menu with 4 cathegories. I want to load in a form into cathegory 1, this form contains fields that the user can fill in. When the user is done he/she can submit the information OR go on to cathegory 2 and fill in additional details OR 3 etc. I'd like to be able to use it in a table. Anyone who can help me with this gets a cooookie!!!!!
  5. I am working on a hobby project right now that has has 4 separate .css files. I have set it up so that I can edit the .css files directly online via my site through an online text editor and save the changes. Now I would like to know if there are any editors out there that I could incorporate in my site to allow me to edit the css parameters (font family, size, color etc) via text field/drop down menus instead. Example: Right now I can edit the css code for the sites menu in a text editor that I can access my sites back-end. #menu td{ background-color:#FF00FF; font-family: "Tahoma", verdana, helvetica, arial, sans-serif; color: #FF00FF; font-weight: italic; text-align: left; border-left: 4px solid #00FF00; border-bottom: 1px solid #00FF00; border-top: 3px solid #00FF00; border-right: 1px solid #00FF00; } #text box{ background-color:#FF0000; font-family: "Arial", verdana, helvetica, arial, sans-serif; color: #FF00FF; font-weight: bold; text-align: left; border-left: 1px solid #F0FF00; border-bottom: 1px solid #00FF00; border-top: 1px solid #00FF00; border-right: 1px solid #F0FF00; } Are there any html/php/java editor out there that could make it easier for me to edit my css parameters so that I can pick the font family, size for #menu td via a drop down menu and chose the font color for #text box via a color map/picker for example? Or is the only "site editor" for my sites css the one I am using right now (i.e. text editor) ?
×
×
  • 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.