PHP - Moved: Php Javascript Echo Help
This topic has been moved to JavaScript Help.
http://www.phpfreaks.com/forums/index.php?topic=347290.0 Similar TutorialsThis topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=320829.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=352201.0 This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=306490.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=343671.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=348171.0 Hi there im having real trouble trying to combine a php echo hyperlink with a javascript link. Is this possible?? Heres my echoed link: Code: [Select] <?php echo '<a href="http://localhost/swb/fleet.php?recordID='.$row_Fleet['FleetName'].'"> <IMG SRC="',$pic1,'" WIDTH="12" HEIGHT="10" BORDER="0" ALT="" CLASS="fmoncalamari"></a>'; ?> Heres the Javascipt: Code: [Select] <a href="javascript:play_multi_sound('multiaudio1');">Flute</a> Ive been trying combine the two so it will hopefullly then hyperlink an image and play an audio file. Its not working Code: [Select] <?php echo '<a href="http://localhost/swb/fleet.php?recordID='.$row_Fleet['FleetName'].' javascript:play_multi_sound('multiaudio1');"> <IMG SRC="',$pic1,'" WIDTH="12" HEIGHT="10" BORDER="0" ALT="" CLASS="fmoncalamari"></a>'; ?> Im really new to Javascript and so any ideas on how i can combine them would be ace Thank you. OK, have no idea what's going on... I've done this a million times... why wont this output!?? I must have a major brain meltdown and dont know it yet!!! Code: [Select] <?php // this echoes just fine: echo $_POST['testfield']; // but this wont echo: echo if (isset($_POST['testfield'])) { $_POST['testfield'] = $test; } echo $test; /// or even this DOESNT echo either!: $_POST['testfield'] = $test; echo $test; ?> Hi All, I'm trying to echo the response from an SLA query, the query works and returns the data when I test it on an SQL application.. but when I run it on my webpage it won't echo the result. Please help? <?php $mysqli = mysqli_connect("removed", "removed", "removed", "removed"); $sql = "SELECT posts.message FROM posts INNER JOIN threads ON posts.pid=threads.firstpost WHERE threads.firstpost='1'"; $result = mysqli_query($mysqli, $sql); echo {$result['message']}; ?> This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=306650.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=353367.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=352475.0 I have a log system that allows 10 logs on each side(Left and right). I am trying to make it so that the left side has the 10 most recent logs, then the right as the next 10. Any ideas? So I need to echo a row from my database with php, but where i need to echo is already inside an echo. This is my part of my code: $con = mysql_connect("$host","$username","$password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("main", $con); $result = mysql_query("SELECT * FROM Vendor"); while($row = mysql_fetch_array($result)) { //I need to echo right here .................. but I get a blank page when I try this. Please Help. echo '<option value=$row['vendor_id']>'; echo $row['vendor_id']; echo '</option>'; } mysql_close($con); Result: A Blank page. Thanks in advance! This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=356124.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=334294.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=355358.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=331343.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=325315.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=309516.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=354118.0 |