LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2002, 03:20 AM   #1
Bheki
LQ Newbie
 
Registered: Jan 2002
Location: Pretoria South Africa
Posts: 22

Rep: Reputation: 15
Angry Retrieving Data


I CAN NOT RETRIVE DATA INTO MY UPDATE FORM OF MY PHP PAGE FROM THE POSTGRES DATABASE. THE ONLY INFORMATION THAT IS RETRIEVED IS THE ONE WITH NO SPACES IN BETWEEN. THE FUNCTION I HAVE USED IS SIMILIAR TO THE ONE BELOW:

FUNCTION GET_DATA(){

$tbs=$GLOBALS[tabls];
$sn=$GLOBALS[snumbr];
$connection=pg_connect("dbname=students");
$query="select * from $tbs where student_number='$sn' ";
$results=pg_exec($connection,$query);
$row=pg_fetch_array($results,0);
$GLOBALS["stdnum "]=$row[student_number];
$GLOBALS["stdname"]=$row[first_names];


nb. First_names="Bheki Zwane" but the last row only returns Bheki.

Please help!!!!!!!!!!!!!!!!!!!!!!
 
Old 05-21-2002, 07:13 AM   #2
piranha
Member
 
Registered: Jan 2002
Distribution: Gentoo Linux 1.4
Posts: 52

Rep: Reputation: 15
Take a look at: http://www.phpbuilder.com/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving lost data mohtasham1983 Linux - General 3 08-31-2005 01:04 PM
IglooFTP - Error retrieving data socket Piki Linux - Networking 0 07-09-2005 11:26 AM
"Retrieving console-data" -installation freezes kpachopoulos Debian 1 03-02-2005 10:04 PM
Retrieving data from devices is not supported??? Teckno Linux - Newbie 2 05-25-2004 04:49 PM
Retrieving data from devices not supported ickselglic Linux - Hardware 1 03-12-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration