Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Error Performing Query: You Have An Error In Your SQL Syntax Near


I have a query which pulls user info from a database table, and displays it in an HTML table. The user then has the ability to edit this data on the next page by clicking continue, where the first and last name are passed as variables, and are listed as uneditable, whereas all the other fields are able to be edited through a simple form.

Here's my problem, on the final page where the actual database UPDATE occurs, I'm getting a SQL error that looks like this
---------
Error performing query: You have an error in your SQL syntax near 'WHERE first_name='Joe' AND last_name='Schmoe' SET street_address_1='real address' at line 1
----------

It looks like its passing the first and last name fine (through hidden inputs), yet when I start to pass the edited fields as variables, it cuts off for some reason. The actual full value that I entered for "street_address_1" was "real address 333". It looks like it cut off after the "address", and didnt even bother to send the other 8 fields.

My code on the processing page looks like this
----------
$street_address_1_update=$_POST['street_address_1_update'];
$street_address_2_update=$_POST['street_address_2_update'];
$city_update=$_POST['city_update'];

$sql ="UPDATE mailing_list WHERE first_name='$first_name_update' AND last_name='$last_name_update' SET street_address_1='$street_address_1_update' street_address_2='$street_address_2_update' city='$city_update'"
----------
I only included 3 fields for brevity's sake. The rest pass the same way as these three. Again, the first and last names are simply passed as hidden inputs through the form.
Anybody have any clue what might be causing this? I know the error is a SQL one, but I may not be passing the variables correctly in PHP.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Error Performing Query:
I currently am making a portal which follows this basic follow:

1. loads db connection info from config.php
2. uses index.php to determine Theme of site, site owner ID, and other data. (This works well and provides all data including meu options, graphics, etc.. from a mysql database).
3. proceed to login screen, which when submitted checks login for valid id

this is where the problem occurs.. in the index and header i use one variable called $dbcnx2 to connecto to the master server hoding the theme, site id, etc.. and it all works.. but the first time I try to select a db from the client's site it give me the error that "Clients" does not exist, but its trying to find it on $dbcnx2 instead of $dbcnx1. heres the code for the login check script: Code:

Email Script/Javascript Parse Error: Syntax Error, Unexpected T_STRING
I've made a email script to include javascript. Now what I want to do, is that I want to hide the link in status bar when I hover over it. I've implemented javascript into the code but I keep getting the following error:

Parse error: syntax error, unexpected T_STRING in /home/****/public_html/fbmail/contact.php on line 12

Here is line 12:
$message .= '<a href="http://www.mysite.com/" onMouseOver="window.status='Click here to continue.'; return true;" onMouseOut="window.status=''; ">Click here to continue ..</a>'; The complete code:

Parse Error: Syntax Error, Unexpected T_ENCAPSED_AND_WHITESPACE, Expecting T_STR
I am having troubles entering this info into my db. Cna someone help? This is the error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/realfina/public_html/ec/testdobaapi.php on line 22 Code:

Parse Error: Syntax Error, Unexpected '?' In /home/**/public_html/website_
Parse error: syntax error, unexpected '?' in /home/realfina/public_html/website_builder/phpcb/filgen.php on line 373

Can someone explain what this means?

Parse Error: Syntax Error, Unexpected T VARIABLE In
I can't figure this out I am posting the script as well if you see something wrong please send an email.

=====================================
<?php
$nume = $_POST['nume']
$prenume = $_POST['prenume']
$adresa = $_POST['adresa']
$telefon = $_POST['telefon']
$mobil = $_POST['mobil']
$A = $_POST['A']
$B = $_POST['B']
$C = $_POST['C']
$CE = $_POST['C+E']
$D = $_POST['D']
$zi = $_POST['zi']
$luna = $_POST['luna']
$an = $_POST['an']
$email = $_POST['email']
$comentarii = $_POST['comentarii']
$ip = getenv("REMOTE_ADDR");

$msg = "Nume: $nume
Prenume: $prenume
Adresa: $adresa
Telefon fix: $telefon
Mobil: $mobil
Categoria A: $A
CategoriaB: $B
CategoriaC: $C
CategoriaC+E: $CE
CategoriaD: $D
Data Nasterii: $zi-$luna-$an
IP: $ip";
$to = "email@example.com";
$subj = "candidat nou";
$from = "www.example.com";
mail ($to, $subj, $msg, $from);
header("Location: success.htm");
}
?>
===================================
error is Parse error: syntax error, unexpected T_VARIABLE in D:xampphtdocsestauto schoolsite_flashsend.php on line 4

Parse Error: Syntax Error, Unexpected T_OBJECT_OPERATOR
I got following error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /xxx/xxx/public_html/xxxx/GeteBayOfficialTime.php on line 49

what's wrong with my syntax? GeteBayOfficialTime.php required be runned at PHP 5.x.x., but my web host said support php 4.4.4. I don't know whether I got error because this reason. Code:

Parse Error: Syntax Error, Unexpected $end In C:wampwwwsitescismv1
I keep getting a "Parse error: syntax error, unexpected $end in c:wampwwwsitescismv1contacts.php on line 227". Line 227 is the end of my code. From what I can tell from searching the web, it appears that there is something that is not concantenated correctly. I cannot find it though. Can anyone else see it?

Parse Error: Syntax Error, Unexpected $end In ..
The error message Parse error: syntax error, unexpected $end in FILE on
line X is one I run into frequently and I know the cause is I missed an
ending quote.

Is there an easy way to determine where the inital " started? I find
myself adding /* */ blocks or cutting/pasting sections of code out in
order to find where the error occured.

Wouldn't it it be nice if the warning message included the line in teh
source where the initial quote occured?

for example say this is my code
<?
function Build_Query(....)
code...

$my_query = "SELECT BLAH FROM ; (line 15)

more code...

} (line 100)
EOF

and you got

Parse error: syntax error, unexpected $end in MYFILE on line 100
started on line 15

Redirect Error Reported As SQL Syntax Error
I just spent way too much time trying to track down an error that was incorrectly reported just now, and I would like to see if someone can explain to me why it was reported that way.

The purpose of the code is simply to delete a record and then redirect back to the page where the delete was started. The code looks like this:

elseif ($_GET[action] == "delete")
{
$query = "delete from product_subcategory2 where product_sku=$_GET[product_sku] and subcategory2_id=$_GET[subcategory2_id]";
$result = mysql_query($query) or die (mysql_error());
$affected_rows = mysql_affected_rows();

if ($affected_rows == 1)
{
header("Location:product.php?action=edit&product_sku=$product_sku");
}
else
{
do_header();
echo("<center><p class="body">Unable to delete Subcategory2. Please try again.</p>");
echo("<a href="product.php?action=edit&product_sku=$product_sku">Edit Product</a>");
do_footer();
}
}

The SQL was find, but the error I had was in the header line. What I had was this:

header("Location:product.php?action=edit&product_sku=<?php echo $product_sku?>");

so since I was already in PHP, I didn't need the "<?php echo" for $product_sku.

Parse Error: Syntax Error, Unexpected
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/hawkwebd/public_html/buy.php on line 2
what does this mean

PHP Saying Error In Mysql Syntax, But Written My Mysql Query Browser!
I have a basic db that I access with MySQL query browser. Everything
seems fine to me but I am using this db as part of a php shopping
basket and when I try to add an item I get:

Notice: Query failed: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near '>function.extract]: First argument should be an
array in functions.inc.php on line 31
Notice: Undefined variable: price in functions.inc.php on line 36
Notice: Undefined variable: price in functions.inc.php on line 39
Notice: Undefined variable: total in unctions.inc.php on line 39

I'm assuming the last three are caused by this problem as price should
be passed to the cart, and total is worked out using it. However
although I know mySQL code it was the MySQL query browser that
actually generated the code and I cannot see a way to view or debug
the code.

The db has one table in it which is made up of id, name, subname,
desc, and price.

The code in the php file that is being referred to is:

Parse Error: Syntax Error ?
Does anyone know what this means? The file it is saying user.php is a class file however i think i got all the opening and closing braces.

QuoteParse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /*/*/*/*/includes/user.php on line 10

Syntax Error
Is it possible to use both Where and Order by in the same statement. Im pretty sure you can but i cant seem to get hte syntax right. Bewlos is the line im refering to:

$qry = "SELECT * FROM `$table` order by `$_GET[sortby]` desc limit $StartFrom, $Limit" WHERE `username` = "'.$session->username.'"'

Syntax Error?
Why does the following line create a Syntax error in PHP.

$Mac = ( (strstr($query,'Mac') || (strstr($query,'Mc') ||
(strstr($query,'M ') );

Syntax Error ???
on login.php , we can see that :

(...)

$sql = "SELECT Login FROM logins
WHERE Login='$fusername'";
$result = mysql_query($sql)
or die("Couldn't execute query1.");

(...)

field : login from table: logins

fusername is a valid form field.

I just can't understand why I get the message Couldn't execute query1.
I don't see any syntax error. :-(



SQL Syntax Error
Where is the error?

mysql_query("INSERT INTO list (status) VALUES ('$status') WHERE name = $name")or die(mysql_error());

Error In Your Sql Syntax
Could not run query: You have an error in your SQL Syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character WHERE name = 'Chris" at line 1

Im getting this error with this code. I think the problem is... 'Chris"  (part in bold), but I can't fix it. Code below where error occures.

$result = mysql_query("SELECT guid FROM character WHERE name = '".$user."'");

I Get A Syntax Error Unexpected '>
Can someone please take a look a this code and give an idea what i'm soing wrong. I;m trying to deleate a record but I can do it.

<?
//session_start();
include_once("mysql_connect.php");
$myConn = connect_db();

$serviceid = $_POST['serviceid'];

$delete = mysql_query("DELETE * FROM service WHERE service_id = $serviceid);

mysql_query($strSQL, $myConn) or die (mysql_error());
echo "<script>alert('" . $intIndex . " Service Deleted!');</script>";
echo "<script>location.href='mycar.php'</script>";

?>

I get a syntax error unexpected '>'

Mysql / PHP : Syntax Error
for php syntax when i call Mysql database

I have wrote that and my sql connection is working

I just have a problem with this command line :

$query = "SELECT * FROM utilisateurs WHERE
pseudo_utilisateur='$login'";
$acces = mysql_query($query);

Syntax Error In Header...
Hi I am getting a sytax error in the following code but I cannot seem to find the problem.. Can anyone see where I am going wrong? PHP Code:

< In ' ' And PHP Shouts About Syntax Error :(
I`ve got a problem again:(
I almoust finished my project and I was doing stupid forms in html to display as
frontend. I have something like that:
<?php
$wyswietl[] = '
<html>

and php shouts:

<b>Parse error</b>: parse error, unexpected '<' in <b>D:IncomingWWWetak.pl
developer_d
isplay.inc</b> on line <b>3</b><br />
:((
I was sure that a variable can have >1 lines

You Have An Error In Your SQL Syntax; (@ Symbol?)
I'm getting this error at the mo... not overly useful... Is there a problem with the @ symbol?

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@hotmail.com' at line 1

Mysql Syntax Error
what is wrong with this statemnet: $query = 'SELECT * FROM products WHERE id = '.$id.' AND boy = '.$boyGirl.' OR girl = '.$boyGirl; what do i do to fix it?

SQL Syntax Error With PHP Variables
I'm getting the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div, writer, sme, progress, status, due) VALUES (Test Project,test description,t' at line 1

Based on this code:

Not Showing Syntax Error
I have a prb that when i run any web page and if it contains an syntax error. then nothing is displayed. I mean page is blanked. what need to change in php.ini.

Syntax Error Using Register Globals
Hi. Everytime I try and use these globals like this:

Trouble With UPDATE - You Have An Error In Your SQL Syntax
I'm having some trouble getting my database to update. This is my first attempt at PHP and MySQL and so far I'm doing well. I just used some of the code from the tutorials on this site and changed them to suit my needs. Everything works except updating the database. Clicking edit swaps a row in a table with a form that should allow me to update the entry. Here is the error it throws.

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
I have followed the correct syntax as far as I can tell, but like I said, this is my first time with PHP and MySQL. Following is all my code (minus CSS which has nothing in it really) with the appropriate sections highlighted.

Code:

Syntax Error, Unexpected T_STRING
Parse error: syntax error, unexpected T_STRING in C:...

Here is the script ....

Page Last Updated Syntax Error
I tried embedding this in an XHTML file, then changed it to a
last4.php, but get a syntax error. What am I doing wrong?

<?php
$last_modified = filemtime("last4.php");
print("Page Last Updated: ");
print(date("m/j/y h:i", $last_modified));
?> ...

Last Date Updated Syntax Error
I tried embedding this in an XHTML file, then changed it to last4.php,
but get a syntax error. What am I doing wrong?

<?php
$last_modified = filemtime("last4.php");
print("Page Last Updated: ");
print(date("m/j/y h:i", $last_modified));
?>...

Syntax Error Cannot Found Out Solution
I encounter syntax error with this line:
<option <?php if( $rows1['rig_name'] ==?>" <?php echo $rows1['rig_name']; ?>" <?php ) { print "selected"; }?> value="<?php echo $rows1['rig_name']; ?>"><?php echo $rows1['rig_name'];?></option>

Parse error: syntax error, unexpected '' in C:PortableWebApprogramwwwlocalhostdrillcorpmaster_adminprojectupdate_projectupdate.php on line 53 PHP Code:

Newbie Questions-- Syntax Error
I keep getting errors on certain pages. Where should I look for changes?

1064 - You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'select a.*, pd.products_name from affiliate_clickthroughs a
select count( select a.*, pd.products_name from affiliate_clickthroughs a
left join products p on (p.products_id = a.affiliate_products_id) left join
products_description pd on (pd.products_id = p.products_id and
pd.language_id = &#391;') where a.affiliate_id = &#391;' ORDER BY
a.affiliate_clientdate desc ) as total
[TEP STOP]

Error In Syntax For Search Results
echo "<p><strong>".($i+1).". Login: ";

I get the following error returned when doing a syntax check

PHP Parse error: parse error, unexpected '>' in c:wayne
esults.php on
line 37

I am using the SAMS PHP and Mysql Web Development book's example on
page 231

Cannot Parse Php In Browser, Syntax Error
I'm getting started with PHP, and I'm got a simple database in MySQL and using php to display information from it. I have a script where I'm trying to display the following:

-first name
-last name
-address

When I parse the file with VIM, I get a syntax error line 20, but I'm not able to see/find my error. PHP Code:

Syntax Error, Unexpected ')', Expecting '(' In
I am getting this error:
Parse error: syntax error, unexpected ')', expecting '(' in /home/realfina/public_html/tests/cvlsofttest/alert.php on line 27

//line 27
$this->V91c7ec= new GtkDialog('Prompt', null, Gtk::DIALOG_MODAL);

Php - Update Mysql Database - Syntax Error
When i try and update the database table i get this error.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc='My name is ***** and I'm a 17-yr. old junior. I play electric ba' at line 1

what i am doing is having the user fill in a large text area and saving it to a database. So i think the problem could possibly be that they are using ' and " in textarea to mess it up? Code:

Syntax Error - Response Not Of Type Text/xml
I made an application using PHP5 for creating a web service for Moodle LMS. I build it in my Win XP Pro SP2 and is working perfectly. When i am testing it with a browser, for example http://localhost/moodle/service.php?wsdl, everything is correct.

I setted up using the same files, the same Moodle version(1., the same PHP+ MySql etc (i use xampp) to an other computer but then i had this error in my browser: "Fatal error: Cannot redeclare class soapclient in C:xampphtdocsmoodle
usoap.php on line 7240".

I have to say that, the Operation System of the other PC is Microsoft Windows Server 2003, Standard Edition, Service Pack 2. I am sure that my code doesn't have any errors because the same error appears when i am using the example "Hello, World Redux" of the "Programming with NuSOAP Using WSDL" tutorial.

i changed the name of soapclient class to nusoap_soapclient in nusoap.php and the wsdl appeared succesfully! Using either my files for moodle, or the hello tutorial (server and client), when i call the client from my browser i get the below errors:

a) if i not rename the class soapclient i get the following error:
Fatal error: Cannot redeclare class soapclient in C:xampphtdocsmoodle
usoap.php on line 7240

b) if i rename the class when i call the client i get the following error
Error: Response not of type text/xml, and i get as response the html code that appears in my browser when i call the helloserver.php (or mine service.php).

either the errors:
Constructor error
wsdl error: HTTP ERROR: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)

Error
HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)

althought the wsdl appears correctly when i call the server (helloserver.php?wsdl or mine service.php?wsdl) i get response html code and not xml as it should. In Win XP i tested the application and works fine! the server and the client! what's wrong in win server 2003??? what should i try in order to get back an xml response to my service? all firewalls etc are open on this pc. do i have to change something in the win server 2003 configurations?

Stored Procedure -ERROR 1064 (42000): The Right Syntax To Use Near
i've a sql query as follows:

SELECT tb1.col1,tb2.col1,tb3.col1 FROM tb1,tb2,tb3 where
tb1.col1=tb2.col2 AND tb3.col3=tb2.col3 AND tb2.col4 BETWEEN 4 AND 5
AND tb2.col5 BETWEEN 6 AND 7;

if I run the above query thru php it works, but if i try to call a
procedure for above query as shown below it thrws error
ERROR 1064 (42000): the right syntax to use near 'tb1.col2

<?
$wherestr = "tb2.col4 BETWEEN 4 AND 5 AND tb2.col5 BETWEEN 6 AND 7";
CALL proc4($wherestr);
?>
Procedure#=>
DELIMITER $$
DROP PROCEDURE IF EXISTS `dbname`.`proc4`$$
CREATE DEFINER=`oteuser`@`%` PROCEDURE `proc4`( whereval varchar(500))
BEGIN set @whereval = whereval;
..............

Embedded CSS Tags In Smarty Template Throws Syntax Error
I have embedded CSS Tags in my template file and Smarty throws error saying

Fatal error: Smarty error: [in register.tpl line 7]: syntax error: unrecognized tag: background-color: #660000; (Smarty_Compiler.class.php, line 446) in libsSmarty.class.php on line 1095


I think this happens due to .body{ the opening bracket how to avoid this? Code:

Query Error.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/ironmanx/public_html/main.php on line 96

That is the error i get with thequery's i am making.

Query Error
I get an error when trying to insert a new row:
query error- 5 - Duplicate entry &#3980;.200.213.102 Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; Avant Browser [avantbrowser.com]; MyIE2; .NET CLR
1.0.' for key 1

The table consist of timestamp, file, level, ip, naam , ID

Where ID is an autoincrement, unique key.



HELP: PHP Search Query SQL Error
I'm trying to run the following search query:

$query =
sprintf ("SELECT itemNumber, thumbnailURL, title, description, price
FROM apparel,hats
WHERE apparel.title OR apparel.description OR hats.title OR
hats.description
LIKE '%s'",
$_POST['tfSearch']);

but it returns this error:

"Column: 'itemNumber' in field list is ambiguous"

Both "apparel" and "hats" tables share the same columns specified in the
SELECT clause.

What I'm I missing?

Parse Error When Executing A DB Query
I am attempting to display the results of a MySql db table to a browser. Its obviously very simple, but I keep getting a parse error on this line...

echo("<p>" . $row["QuoteText"] . "</p>"); PHP Code:

Parse Error In Nested Query - Please Help.
I am having troubles finding the parse error in this script. I've been
checking for weeks. I am too new to the subject I guess.

I am trying to show a readord and them have a form at the bottom of the
page for inputting data to Update the record. I get a parse error that
points to the last line in the script so I know it is something I am missing
earlier in the script but doing a line by line it seems fine to me.

------------------------------
<--cut--
$query = "SELECT sub_id, username, story_title, DATE_FORMAT(date_submitted,
'%m/%d/%y'), category, story FROM Submission WHERE date_processed < 1 LIMIT
0,1";

$result = @mysql_query ($query); // Run the query.
if ($result) { // If OK, display the record.

echo '<table align="center" cellspacing="5" cellpadding="1" border="0"
width="500"><span><tr><td align="left" width="100">Story ID:</td><td
align="left" width="100">Name</td><td align="left" width="250">Title</td><td
align="left" width="100">Date&nbsp;Submitted</td><td align="left"
width="50">Category</td></tr><tr><td colspan="5"></span><hr></td></tr>'

// Fetch and print the record.
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo"<tr><td align="left" width="100">"
..$row[0]
.."</td><td align="left" width="100">"
..$row[1]
.."</td> <td align="left"width="250">"
..$row[2]
.."</td><td align="left" width="50">"
..$row[3]
.."</td><td align="left" width="50">"
..$row[4]
.."</td></tr><tr><td colspan="5"width="500"><br>"
..nl2br($row[5])
.."</td></tr>
";
}
echo '</table>'
echo '<hr>'

Query Oci_parse() Apache Error
I get this error, apparently because of my Query:

Apache.exe has encountered a problem and needs to close. We are sorry for
the inconvenience.

the error in on oci_parse() , but when I replace the above query with for
example "select * from clients"; I don't get the error. Though I need to
use query I put in variable $query....

All my other variables are ok, and the query works when I use it in SQL
worksheet for instance. (I use oracle 9i, php5, apche 1.3)

what can I do with that query to make it work?

$req_id = $_GET['request_id'];

print "request id : $req_id <br>";

$req_name = $_POST['request_name'];

print "request_name -> $req_name <br>";

$req_date = $_POST['request_date'];

print "request_date -> $req_date <br>";

$req_client_id = $_POST['request_client_name'];

print "request_client_name -> $req_client_id <br>";

$req_req_type_id = $_POST['request_type'];

print "request_type -> $req_req_type_id <br>";

$req_brand_id = $_POST['request_brand_name'];

if ($req_brand_id=='Brand Name') $req_brand_id='NULL'

Fatal Error Line 49 -- SQL Query.
Alright I got my Pagination to work on my page. But when I try to narrow my rows down to a certain parameter rather than pulling all rows, i get. These are the lines with the errors. You can statements work, and which ones dont. The statements that pull all rows works and I dont get an error. Code:

Parse Error In Update Query
This is the first time I have ever used the update query. I am not having any luck figuring it out. Please post if you find my mistake,

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting

T_STRING or T_VARIABLE or T_NUM_STRING in
[bleeped] on line 46
here is the location of the problem:

$sql = "UPDATE $table
SET pagecontent = $_POST['T']
WHERE id = $_POST['id2']";

Error In Query: SELECT Uid, Uperms From Users WHERE Uname =
I am trying to set up the article from the main page in devshed called money is time
the thing is this, it denies access for this user and pass even though they are in the database 'example' and on table (users)

Error in query: SELECT uid, uperms from users WHERE uname = 'john' AND upass = PASSWORD('john'). Access denied for user: '@localhost' to database 'example' Code:

Warning: PostgreSQL Query Failed: ERROR: Pg_atoi:
I've built a postgres database that can be controlled through browser inputs to update, insert or delete records. i'm using php to access the db and display results in html. all of my update commands work fine but my inserts will not, each time i try to insert it kicks out this line:

Warning: PostgreSQL query failed: ERROR: pg_atoi: error in "head": can't parse "head" in ....... on line 47

for this example "head" is an attribute of type text which is all set up properly to send and hold the correct attribute type ($tag_method in the sql under here). Line 47 refers to the sql command in my php which looks like this:

LINE 46: $sql="INSERT into sheep values ('$tag_method', $flock_id, '$sex', '$breed' , $age, $parent_id, '$born_on_farm', '$date_joined', $price_paid, $price_sold, $sheep_number)";

LINE 47: $result_set = pg_Exec ($conn, $sql);


Copyright © 2005-08 www.BigResource.com, All rights reserved