Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Php Functions

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28121
    jonleesmith
    Member

    Hi Everyone

    I need some help, Im trying to echo a function and It doesnt work, is it possible? If so how?

    eg:

    Code:

    All it does is shows

    http://getUrl() in the address bar

    Thanks In advance

    jonleesmith

    #71605
    jonleesmith
    Member

    Does’nt seem to be working unfortunately. Gota be some how

    Code:
    $query = “SELECT title FROM go_pages “;

    $result = mysql_query($query);

    while ($row = mysql_fetch_array($result)) {
    echo “

  • $row[title]
  • “;

I want to put the getUrl() function in

Code:

Enclose your complex variables in curly braces and you should be fine.

Code:
echo “

  • {$row[title]}
  • “;

    #56731
    stonemethew
    Member

    This is the exact way to use a echo into the PHP Language,
    <?php
    $myString = "Hello!";
    echo $myString;
    echo "<h5>I love using PHP!</h5>";
    ?>

    Viewing 4 posts - 1 through 4 (of 4 total)
    • The forum ‘Back End’ is closed to new topics and replies.