Discuss coding issues, and scripts related to PHP and MySQL.

  1. » JanMolendijk
    I wanna use this code but only a single row, do you known how to select it ?

    // SELECT sql query
    $sql = "SELECT `id`, `name`, `pass` FROM...
    Last post » JanMolendijk
    I found the answer i have to do this
    // SELECT sql query
    $sql = "SELECT `user_longbio`, `user_id` FROM `user` WHERE `user_id`='10000' ";

  2. » JanMolendijk
    I run two different scripts for both i have an log-in system.
    But how can i make an register for two data-bases ?
    Last post » JanMolendijk
    ok thank you for the answer i gonna try some things

  3. » JanMolendijk
    I hope you could help me out with this problem

    include_once 'dbconnect.php';

    $query =...
    Last post » Admin
    You have to the object with the mysqli connection:
    $query = $conn->query("...");
    $query =...

  4. » JanMolendijk
    How can i give users an php webpage into a map on my server when they register ?
    Last post » JanMolendijk
    My explain is meight bit pity so i try again
    I found this script

    But now i wanna create an php file on my server
    with data when users register...

  5. » JanMolendijk
    I wanna add text into an textarea where i have html code into the title but it does not show the whole html code into the textarea.
    Last post » Admin
    In <textarea> you not have to add data in "value" attribute, but between starting and ending tags.
    Try simple like this:

  6. » JanMolendijk
    I wanna Delete records from a database, but i want to choose what record i delete into an text-area with delete-button
    (i where able to find this...
    Last post » JanMolendijk
    You doing Great Work `thanks for the support`

    & also thanks to i have
    this Web-Site:

  7. » JanMolendijk
    First thing it stay`s an great website
    i learning alot & i`m thankfully.
    I getting this error & ask myself what is wrong
    Last post » Admin
    Welcome to this website.
    It seems you use an old php script, which uses the mysql_connect() function for working with mysql database.

  8. » JanMolendijk
    First great website i learning alot `thanks for this`

    My Question:
    I did not found an example how to add text into the SQLdatabase from a textarea....
    Last post » JanMolendijk
    thanks for the quick answer you all do greatest work
    i gonna try this code hope i`m able to complete

  9. » Waylon
    I am using this script to insert data from a Form into a Database. I am new to PHP and trying to learn. However, after 3 days of banging my head...
    Last post » Admin
    A documentation complete about Strings and Quotes in php you can find to this page: PHP Strings (in the php manual from
    - Or, you can find...

  10. » mluci12
    Hello!i have this page: and database:
    Id | content | type
    How can i order database results after select ? First display...
    Last post » Admin
    I don't know.
    If there is a php-mysql issue, put the php and mysql code that you use to make and output Selecting data.

  11. » mluci12
    Please help me! I have this code but don't redirect to submit2.WHY?
    <!DOCTYPE html>
    Last post » Admin
    The code mysql_query($sql, $conn) is incorrect. Maybe the script it uses MySQLi; in this case you should put: $conn->query($sql) .

  12. » mluci12
    I have page: from to: from to submit5.html user complete with...
    Last post » Admin
    If the second page is just a simple html document (without php code), to keep data from one page to another html page you can use JavaScript...

  13. » mluci12
    I created a blog but I have problem with Romanian characters:
    Last post » Admin
    I see no problem with characters in that page. The romanian characters, diacritics, are displayed well.
    Copied from that page:
    mașină Începând...

  14. » mluci12
    $servername = "";
    $username = "";
    $password = "";
    $dbname = "";

    Last post » mluci12
    Thank you very very much!!!!!!

  15. » mluci12
    i have a page "create.php/id=xx"
    I have a Database like
    I want to put all this quiz on page...
    Last post » Admin
    Forgive me, I have no wish for more ideeas; just Peace.
    Try to accept you,
    And see, what is your truly wish?

    When all here is a virtual illusion....

  16. » mluci12
    I have this file upload script and Mysql& PHP insert in database.Why don't work file upload?
    <?php require('includes/config.php');...
    Last post » Admin
    Maybe the ":" in the array keys is wrong.
    Try this, make sure you have the "filename" column in the "members" table;...

  17. » mluci12
    When i create PHP apps i create link like , but this is not seo friendly.
    How can i make link like:...
    Last post » Admin
    You can create friendly seo links with mod_rewrite in the .htaccess file.
    For example:
    Options +FollowSymLinks
    RewriteEngine On


  18. » mluci12
    I have a linux server with custom api.I make a php script who check if user pay invoce.How can i make this script acces a link if he return...
    Last post » Admin
    If you want to open /redirect to a page address when a condition is True in php, you can use the header() function; like in this example:...

  19. » mluci12
    Hello!I have this php asp( users press "Bookmark" burton he is redirected to a page...
    Last post » Admin
    You can send data to php without page refresh using Ajax. You can learn it from the: , or you can search on intenet for: " ajax tutorial...

  20. » mluci12
    How can i create a %Like select where variable is a php variable.
    Last post » Admin
    Simple, like this:
    $varnm  = 'value' ; $sql  =  SELECT * FROM table_name WHERE col_1 LIKE '%...

  21. » mluci12
    I have this php code:
    if ( $result -> num_rows  >  0 ) {   if( $row [ 'stare' ] == 'sell' ) ...
    Last post » Admin
    I suppose the cause is you concatenate the "stare" result with ".=", so, it is added to previous parsing. Try with simple...

  22. » mluci12
    <form action="" method="post">
    Type: <select name="studii" id="studii">
    Last post » Admin
    Maybe you need a "submit" button in the <form>.
    I tested this code in a php file, and it works.
    <?php ini_set ( 'display_errors'...

  23. » mluci12
    Hello!Have you any idea why this don't work?
    $user = trim($_GET['user']);...
    Last post » Admin
    The second Insert, $sql2, is not sent to mysql (with mysql_query() ).
    Also, the second insert seems wrong. Maybe this is correct:
    $sql2 =...

  24. » StefanS
    Hello, how to solve this error ? I read on different sites about this error, but i don't find solve
    - Error

    Warning: Cannot modify header...
    Last post » Admin
    You can not output something to browser before session_start() or header() function.
    So, the php code with those functions must be before html...

  25. » mluci12
    Hello! I have this html form:
    <div class="col-md-4 col-sm-12">

    <div class="contact-form bottom">...
    Last post » Admin
    The mysql_query() is deprecated, better use MySQLi or PDO.
    In the php code it is missing the data /value for $telefon. The $telefon variable is...