Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~4K People Reached
Favorite Tags
Member Avatar for benk1

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; } …

Member Avatar for WaltP
0
149
Member Avatar for benk1

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>"; …

0
57
Member Avatar for benk1

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 …

Member Avatar for digital-ether
0
839
Member Avatar for benk1

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 …

0
86
Member Avatar for benk1

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 …

Member Avatar for benk1
0
268
Member Avatar for ErikV

Hay, I had a question about a login system that i want to create. I have SQL express 2005 with value's ( business name, passwords e.d. ). This system we use to fill in what we did at the company, and how much time we spend on it. This system …

Member Avatar for ErikV
0
145
Member Avatar for jamesbarnhill

I'm pretty sure this is a simple fix, but I don't see it: [CODE]foreach($rows as $row) { $result .= "<li><a href='"javascript:void(0)" onclick="javascript:chatWith('.$row->username.')">" .htmlspecialchars(getNameFormatOnline($row->name,$row->username,$ueConfig['name_format']))."</a></li>\n"; }[/CODE] This is a list of online users; putting the username inside "javascript:chatWith('USERNAME_HERE')", to initiate a chat. Thanks, James

Member Avatar for CFROG
0
147
Member Avatar for benk1

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 …

Member Avatar for benk1
0
73
Member Avatar for benk1

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 …

Member Avatar for MrYrm
0
96
Member Avatar for benk1

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> …

Member Avatar for benk1
0
108
Member Avatar for benk1

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 …

Member Avatar for benk1
0
133
Member Avatar for benk1

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 …

Member Avatar for benk1
0
2K
Member Avatar for benk1

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 …

Member Avatar for benk1
0
113