like this
function add_record($tablename, $fields, $values, $database, $host, $username, $password) {
$record = mysql_query(INSERT INTO members(first_name,surname,email)
VALUES('Tam','Bam','tambam@bools.com')
if (!$record) {
echo "INSERT...
am trying to insert to a database
and am getting the following error
cannot seem to get rid of it and get the info inserted
can anyone see my probs
any help would be appreciated
<?php
$tablename = 'members';
$fields = array("first_name", "surname", "email");
$values = array( "Tam"...
i have been trying to complete this script to output the titls column
only gives me Resource id #3
at moment
<?php
$host = 'localhost';
$user = 'xxxxxx';
$pass = 'Xxxxxxxx';
mysql_connect($host, $user, $pass);
mysql_select_db($user);
$result = mysql_query("SELECT title FROM books")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.