Hey, DaniWeb friends! I've a problem with my login.php: When an error occurred, the [CODE]mysql_error();[/CODE] doesn't appear the error. Tested the [CODE]mysql_errno()[/CODE] also, it appears as 0, saying it doesn't have any errors. Take a look at the script: [CODE] <?php $username = $_POST['username']; $pass = $_POST['password']; require "conf/connection.php"; require "layout/nav.php"; $result = mysql_query("SELECT * FROM users WHERE uname = '$username' AND password = '$pass'"); $total = mysql_num_rows($result); $r = mysql_fetch_array($result); if ($total == 0){ echo 'An error occurred: ' . mysql_error() . 'The error code: ' . mysql_errno(); } else { session_start(); $_SESSION['id'] = $r['id']; $_SESSION['uname'] = $r['uname']; $_SESSION['password'] …

Member Avatar
Member Avatar
+0 forum 6

trigger i am wrting on mysql table i have a tool in which i am calcultaing marks 140 atomic questions and now i want add 4 questions marks and assign to one major questions. how should i approach it. begin ("$value.governance and accountability") = ("$value.existence of a governing board") + ("%value. Board meetings held as per bye laws"); end

Member Avatar
Member Avatar
+0 forum 3

hey people, i have the following problem, i'm setting up a webshop with over 2k items and every 6months the prices are changing(wines) so i was wondering how to import an xml file into a mysql database without having to go in phpmyadmin. this because i don't want the people for who i'm making the website have access there to destroy the whole database. this is what i got so far: [CODE]<?php include "header.php"; ?> <br><br><br> <h1>Database updaten</h1> <form enctype="multipart/form-data" action="import.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="20000000" /> <table width="600"> <tr> <td>Names file:</td> <td><input type="file" name="file" /></td> <td><input type="submit" value="Upload" /></td> …

Member Avatar
Member Avatar
+0 forum 32

The End.