• Resolved frcc78

    (@frcc78)


    Hello everybody,

    I have I think a simple question:

    I retrieve some data from the WPDB (see below)


    $result = $wpdb->get_row("SELECT * FROM wp_table WHERE id="1");

    And I want to transform the result into one variable like that:

    $variable=$result->titredossier_id;

    But it’s not working… Any idea ??

    thanks a lot

Viewing 1 replies (of 1 total)
  • Thread Starter frcc78

    (@frcc78)

    I had it wrong, you can do that apparently $variable=$result->titredossier_id;
    It’s just an object/array problem I had.
    Thanks anyway

Viewing 1 replies (of 1 total)
  • The topic ‘Php variable question’ is closed to new replies.