Php variable question
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Php variable question’ is closed to new replies.