No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Hi everyone I have a simple piece of code thus: char userChoice = '\0'; validate:; printf("Please make a choice [y/n] \n"); //fflush (stdout) ; scanf("%c", &userChoice); if(userChoice != 'y' && userChoice != 'n' ) { printf("\nInvalid input; please enter y or n. \n "); userChoice = '\0'; goto validate; } … | |
Hi I have a problem as detailed below. I hope the answer is something really simple: [CODE]$connect = new PDO("sqlite:main.db"); $sql = "SELECT * FROM employee ORDER BY Surname"; echo "<table align='center' border='1'>"; foreach ($connect->query($sql) as $info) { $FirstNames=$info['FirstNames']; $Surname=$info['Surname']; $EmployeeID=$info['EmployeeID']; $TagID=$info['TagID']; echo "<tr align='center'>"; echo "<td width='16%'> $FirstNames </td>"; … | |
Hi Guys I wrote a little web app to integrate with an SQLite database. When the database is on a local PC, there is no problem connecting to it as in: [CODE]$connect = new PDO("sqlite:\path\to\database.db");[/CODE] Now I've been asked if I can adapt it to connect to a linux device … | |
Hi I'm a bit of a newbie with this stuff, so I'm not 100% sure where to post this. Anyway I have a mini arm based PC for which I am trying to compile a php binary in cgi-mode, which supports sqlite. I am trying to cross compile from a … | |
Hi Guys, I have access to mini linux PCs that can serve up webpages using the Boa webserver. They also house an sqlite db file. What I want to do is install the bare-bones of php with only sqlite and PDO functionality, so I can write to and display data … | |
Re: Try here: [URL="http://www.phpeasystep.com/phptu/6.html"]http://www.phpeasystep.com/phptu/6.html[/URL] It is the tutorial I used to create a simple login area for a website. | |
Re: You have an odd number of ' Which I'm guessing is not good | |
I'm relatively new to session variables, and have been trying to use them in the following way: [CODE]session_start(); $daddr1=$_SESSION["daddr1"]; $daddr2=$_SESSION["daddr2"]; $daddr3=$_SESSION["daddr3"]; $daddr4=$_SESSION["daddr4"]; $daddr5=$_SESSION["daddr5"]; $iaddr1=$_SESSION["iaddr1"]; $iaddr2=$_SESSION["iaddr2"]; $iaddr3=$_SESSION["iaddr3"]; $iaddr4=$_SESSION["iaddr4"]; $iaddr5=$_SESSION["iaddr5"]; $notes=$_SESSION["notes"]; $purch=$_SESSION["purch"]; echo "<form name='form1' action='view_order.php' method='get'>"; echo "<table border='0' width='100%'>"; echo "<tr align='center'>"; echo "<td width='16%'> </td>"; echo "<td width='16%'>Your purchase … | |
Hi guys, I have a simple php shopping basket which stores the products in an array. To add a new value into the array, I have the following: [CODE]$cart .= ','.$_GET['id'];[/CODE] I was just wondering if there is an equivalent line of code to remove a single array value with … | |
Hi I have designed a simple login area on a website that creates a few session variables to use to query a database of products which works fine: [CODE]<?php session_start(); // dBase file include "dbConfig.php"; if (!$_POST['username'] || !$_POST['password']) { die("You need to provide a username and password.<p>Click <a href='main_login.html'>here</a> … | |
Hi guys I'm looking for a starting point to have a login for a website. The situation is as follows - I have a common product list, with 3 price bands (gold, silver, bronze) When a gold customer logs in, I want to search the db for the products, and … | |
Hi Guys I've got a MySQL product database on a website, and I wrote a php script that searches the database and returns the results in an html table with no problems at all. My problem comes when trying to display x results (I've been trying 5) per page. I've … | |
Hi, I'm creating a simple form where you select a company name from a dropdown list, and you can then update the values associated with this using textboxes and a submit button. The dropdown works fine (it shows all the companies in the database) and the submit button submits data … |
The End.