What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 21:36:15
javascript access php variable
<script type="text/javascript"> // boolean outputs "" if false, "1" if true var bool = "<?php echo $bool ?>"; // numeric value, both with and without quotes var num = <?php echo $num ?>; // 7 var... Add solution -
Other 2022-02-01 02:51:14
Zoom image using html js php
<div id="gridview"> <div class="heading">Zoom for Product Images in PHP Shopping Cart</div> <?php $query = $db_handle->runQuery("SELECT * FROM tbl_products ORDER BY id ASC"); if (! empt... Add solution -
PHP 2022-01-30 08:15:09
php sql search form
<?php $localhost = "localhost"; $username = "root"; $password = ""; $dbname = "samueldb"; $con = new mysqli($localhost, $username, $password, $dbname); if( $con->connect_error){ die('Error: ' . $con->c... Add solution -
PHP 2022-01-23 03:35:58
undefined index: tec_comm in c:\xampp\htdocs\fossee\user5.php on line 45
<?php require_once('../Connections/itemconn.php'); ?> <?php $id=$_GET['id']; $query=mysql_query("select * from manuf where id='$id' ")or die(mysql_error()); $row=mysql_fetch_array($query); ?> &... Add solution -
PHP 2021-12-23 18:15:02
new line in php
<?php echo "If you view the page source \r\n you will find a newline in this string."; echo "<br>"; echo nl2br("You will find the \n newlines in this string \r\n on the browser window."); ?> // 2 Way <?php ... Add solution -
PHP 2021-11-22 00:49:17
print sql query result as an array php
<?php $connection = mysqli_connect( 'localhost', 'root', 'dbPass' ); if ( !$connection ) { die( 'Database Connection Failed' . mysqli_error( $connection ) ); } $select_db = mysqli_select_db( $connection, 'sample_login' ); if ( !$select_db ) { d... Add solution
Best helpers
Ranking is empty