User Profile

Collapse

Profile Sidebar

Collapse
mlewis
mlewis
Last Activity: Jan 29 '22, 02:42 PM
Joined: Sep 9 '08
Location: France
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mlewis
    started a topic Populating an html form with php
    in PHP

    Populating an html form with php

    Hello I wanted to follow on from http://bytes.com/forum/thread3085.html but the forum wouldn't let me post ... so ...

    I dont see the complete answer. If this is how to get variables from php into html text fields

    Code:
    $foo = "something from db"
    $bar = "something very long from db"
    
    ...
    <input type="text" name="short" value="$foo">
    <textarea
    ...
    See more | Go to post
    Last edited by Markus; Oct 28 '08, 10:54 AM. Reason: added # tags

  • mlewis
    started a topic A Normalisation problem

    A Normalisation problem

    Hello

    I would be most grateful for a little help / discussion on a normalisation / db structure question I have.

    I think the issues are pretty well explained graphically on my link (below) but the main question is I'm wondering whether the tables items and services should be in one table with an identifier and whether service providers and service customers should be in one customer table for the purpose of ordering....
    See more | Go to post

  • mlewis
    replied to Beginners pb with PHP
    in PHP
    Got it thanks. This does the trick
    [code=php]
    <?php

    // turns on or off debugging
    error_reporting (E_ALL);
    ini_set('displa y_errors', true);

    // supposed to cause your script to halt when a MySQL query fails, and report the error message:
    //mysql_query($qu ery, $link_id) or die('<hr />MySQL Error: ' .mysql_error(). '<hr />');

    $DBhost = "127.0.0.1" ;...
    See more | Go to post
    Last edited by Atli; Sep 9 '08, 06:03 PM. Reason: Added [code] tags.

    Leave a comment:


  • mlewis
    started a topic Beginners pb with PHP
    in PHP

    Beginners pb with PHP

    Hello and thanks in advance for any help.

    I'm just starting out on PHP and read the very useful exercise at http://bytes.com/serversidescripting...ses/index.html

    I turned on debugging as suggested and on running I got the following error messages:
    Code:
    Notice: Undefined variable: id in C:\Program Files\EasyPHP 2.0b1\www\test\add2.php on line 27
    
    Notice: Undefined
    ...
    See more | Go to post
    Last edited by Atli; Sep 9 '08, 09:37 AM. Reason: Added [code] tags.
No activity results to display
Show More
Working...