What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-02 18:30:50
showing database table in php
$connection = mysql_connect('localhost', 'root', ''); //The Blank string is the password mysql_select_db('hrmwaitrose'); $query = "SELECT * FROM employee"; //You don't need a ; like you do in SQL $result = mysql_query($query); echo "<t... 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 2022-01-22 11:36:34
iterating rows in php
<?php $query = mysql_query("SELECT * FROM users WHERE pointsAvailable > 0 ORDER BY pointsAvailable Desc"); $queryResultArray = mysql_fetch_array($query); foreach($queryResultArray as $row) { echo $row['pointsAvailable']; } ?> Add solution -
Html 2021-11-18 07:39:14
sum total free html code
<?php include('header.php');?> <body><br><br><div class="container"> <div class="alert alert-success">Sum the Numbers in a Column</div> <br /> <table class="table table-stri... Add solution -
TypeScript 2021-11-14 07:58:16
AND-OR-AND + brackets with Eloquent
//mysql query be like this // ... WHERE (gender = 'Male' and age >= 18) or (gender = 'Female' and age >= 65) //Eloquent query is // ... $q->where(function ($query) { $query->where('gender', 'Male') ->where('age', '>=', 18);... Add solution -
SQL 2021-11-12 12:07:12
row number mysql
//number of rows retrieved from a query <?php $link = mysql_connect("localhost", "mysql_user", "mysql_password"); mysql_select_db("database", $link); $result = mysql_query(&qu... Add solution
Best helpers
Akiman Barwa
+5
Moo-Juice
+5
Jeff Ava
+5
Pharma
+5
PixelZerg
+5
Andrew Lowe
+5
A. Pettit
+5
JohnDoe
+5
Mahnaz
+5
Silver Rain
+5
Tralston
+5
Jcjr
+5
Thruston
+5
Catimann
+5