I want that when editing the variable from the phpmyadmin change here. I hope to explain, because I do not know how to explain it.
echo '$' . $rows_dbpartidos['color_local'] . '';
and it shows a code that I already have organized, for example, "$ celeste" has this RGB: 40, 180, 228
Edit, I have this code:
COLORES.PHP
<?php
$rojo='198, 39, 58';
$azul='33, 62, 113';
$verde='14, 108, 57';
$negro='28, 28, 28';
$granate='123, 43, 63';
$celeste='40, 180, 228';
?>
Y donde quiero poner la variable para editar el codigo lo tengo asi:
<?php
include('colores.php');
?>
<svg style="width: 100%; height: 100%;position: absolute;">
<line x1="15%" y1="110%" x2="70%" y2="-10%" style="stroke:rgb(<?php
$sql_dbpartidos = "SELECT * from equipos where id=1";
$result_dbpartidos = mysqli_query($conexion,$sql_dbpartidos);
$rows_dbpartidos = mysqli_fetch_array($result_dbpartidos);
if($rows_dbpartidos){
echo'' . $rows_dbpartidos['color_local'] . '';
}
?>);stroke-width:40"></line>
</svg>
And in the echo I want to put the editable variable.