Cancelado

Need a php script to insert variables into results from database query returning a blob field.

I need a php script that will insert variables in the results from a database query returning a blob field.

I have the script

<?php

include("[url removed, login to view]");

$firstname="John";

$lastname="Smith";

$query="SELECT msg FROM messages WHERE mid='1'";

$result=mysql_query($query);

$query_data=mysql_fetch_array($result);

$msg=$query_data[0];

echo $msg;

?>

$msg reads Hello $firstname $lastname

and it is echoing Hello $firstname $lastname

instead of

Hello John Smith

Which is what I need it to do.

Habilidades: Engenharia, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: what is database management, insert, php insert select, php script echo, echo script php, echo script, php echo script, php script database query, database query project, project management database php, query project database, project query, need script php, blob, database script php, database php script, project query database, php script project management, php script project, php query result, php insert field, php include include, php echo php echo php echo, php select query, include php script

Acerca do Empregador:
( 262 comentários ) Glen Ellyn, United States

ID do Projeto: #2983576

1 freelancer está ofertando em média $9 para este trabalho

sustainedhits

See private message.

$8.5 USD em 1 dia
(150 Comentários)
5.6