473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

T_constant_encapsed_string

23
I'm hoping some one will know where I've gone wrong with the following.

[PHP]<?php

putenv("TNS_ADMIN=/u1/oracle/Produdcts/shu10g/network/admin");

$con = OCIlogon("Username","Password","shu10g");

$query "Begin p_room_content(1,1,:var_room_id, :var_fixture_id, :var_fixture_description); End; ";

$stmt = OCIParse($con, $query) or die ('Can not parse query');

OCIBindByName($stmt,":var_room_id", &$room_id,4) or die ('Cannot bind variable');

OCIBindByName($stmt,":var_fixture_id", &$fixture_id,4) or die ('Can not bind variable');

OCIBindByName($stmt,":var_fixture_description", &$fixture_description,25) or die ('Can not bind variable');

OCIExecute($stmt) or die ('Cannot Execute statement');

OCIFreeStatement($stmt);

OCILogoff($con);

Echo "$room_id $fixture_id $fixture_description ";

?>[/PHP]
Apr 14 '08 #1
17 4200
Markus
6,050 Expert 4TB
I'm hoping some one will know where I've gone wrong with the following.

[PHP]<?php

putenv("TNS_ADMIN=/u1/oracle/Produdcts/shu10g/network/admin");

$con = OCIlogon("Username","Password","shu10g");

$query "Begin p_room_content(1,1,:var_room_id, :var_fixture_id, :var_fixture_description); End; ";

$stmt = OCIParse($con, $query) or die ('Can not parse query');

OCIBindByName($stmt,":var_room_id", &$room_id,4) or die ('Cannot bind variable');

OCIBindByName($stmt,":var_fixture_id", &$fixture_id,4) or die ('Can not bind variable');

OCIBindByName($stmt,":var_fixture_description", &$fixture_description,25) or die ('Can not bind variable');

OCIExecute($stmt) or die ('Cannot Execute statement');

OCIFreeStatement($stmt);

OCILogoff($con);

Echo "$room_id $fixture_id $fixture_description ";

?>[/PHP]
When you receive an error you are given the line number on which the error occured; it's helpful to know which line.

Regards
Apr 14 '08 #2
TheServant
1,168 Expert 1GB
When you receive an error you are given the line number on which the error occured; it's helpful to know which line.

Regards
And what error it says it has.
Apr 14 '08 #3
Markus
6,050 Expert 4TB
And what error it says it has.
Says it in the title i believe :P
Apr 14 '08 #4
TheServant
1,168 Expert 1GB
Says it in the title i believe :P
Oh. Didn't realize that was the error... Please continue with no notice of my ramblings [/ramble]
Apr 15 '08 #5
ronverdonk
4,258 Expert 4TB
What is the purpose of [php]$query "Begin p_room_content(1,1,:var_room_id, :var_fixture_id, :var_fixture_description); End; ";[/php]I think you want an assignment to a variable here.

Ronald
Apr 15 '08 #6
Markus
6,050 Expert 4TB
What is the purpose of [php]$query "Begin p_room_content(1,1,:var_room_id, :var_fixture_id, :var_fixture_description); End; ";[/php]I think you want an assignment to a variable here.

Ronald
Nice catch!

I looked right past that.
Apr 15 '08 #7
ronverdonk
4,258 Expert 4TB
All you need is an IDE that catches it for you!

Ronald
Apr 16 '08 #8
TheServant
1,168 Expert 1GB
All you need is an IDE that catches it for you!

Ronald
...IDE? [/n00b reveal]
Apr 16 '08 #9
ronverdonk
4,258 Expert 4TB
...IDE? [/n00b reveal]
An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, a compiler and/or interpreter, build automation tools, and (usually) a debugger.

The one I use is phpDesigner 2008 V6.0.2. Works for me.

Ronald
Apr 16 '08 #10
TheServant
1,168 Expert 1GB
An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, a compiler and/or interpreter, build automation tools, and (usually) a debugger.

The one I use is phpDesigner 2008 V6.0.2. Works for me.

Ronald
So more professional DreamWeaver?
Apr 16 '08 #11
ronverdonk
4,258 Expert 4TB
So more professional DreamWeaver?
Certainly not! I like to write my own code, not by some s.... assembly application.

Ronald
Apr 16 '08 #12
TheServant
1,168 Expert 1GB
Certainly not! I like to write my own code, not by some s.... assembly application.

Ronald
Hmmm, I should look into this phpDesigner as I only use dreamweaver for the coloured code and I don't use any of it's other features... Thanks for that Ron.
Apr 16 '08 #13
Markus
6,050 Expert 4TB
I believe Ronalds is a version that costs you mooooneeeeeeeey.

My version of PHP Designer, however, doesn't.; Hooray for freeware!

PHP Designer 2007 - Personal.

:D
Apr 17 '08 #14
TheServant
1,168 Expert 1GB
I believe Ronalds is a version that costs you mooooneeeeeeeey.

My version of PHP Designer, however, doesn't.; Hooray for freeware!

PHP Designer 2007 - Personal.

:D
Yeah been looking at that. I found the 07 Personal version just wanted to make sure it's legal (so thanks for letting me know). Well seeing you two use it it will be worth checking out!
Apr 17 '08 #15
ronverdonk
4,258 Expert 4TB
I believe Ronalds is a version that costs you mooooneeeeeeeey.

My version of PHP Designer, however, doesn't.; Hooray for freeware!

PHP Designer 2007 - Personal.

:D
Yeah, but I think (not sure) that you miss support for working with OOP and frameworks in PHP, real and advanced debugging using Xdebug, remote ftp-editing and some more features. And only for Euro 39.

Ronald
Apr 17 '08 #16
TheServant
1,168 Expert 1GB
Yeah, but I think (not sure) that you miss support for working with OOP and frameworks in PHP, real and advanced debugging using Xdebug, remote ftp-editing and some more features. And only for Euro 39.

Ronald
lol, do you work for them or what?! Nah, it sounds good, but I will try the Personal Edition for starters. But you are right it is not expensive, so if I like it, I buy it. Thanks for your help guys.
Apr 17 '08 #17
ronverdonk
4,258 Expert 4TB
lol, do you work for them or what?! Nah, it sounds good, but I will try the Personal Edition for starters. But you are right it is not expensive, so if I like it, I buy it. Thanks for your help guys.
I don't work for anyone! But I like to design and write all code myself, in whatever language and I absolutely hate (assembly or construction) applications like Dreamweaver or FrontPage and the likes. They are not about programming, they are forcing you to use prefabricated building blocks.

Ronald
Apr 17 '08 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ralph Freshour | last post by:
I bought the PHP and MySQL For Dummies book and I'm having trouble understanding how I use PHP to verify and check forms input text data - the book shows snippets of code so I know how to do the...
3
by: xo55ox | last post by:
I am trying to display a calculated value through echo/print/write in php script, but it didn't work. What is the right syntax to display a $var? I processed $sql2 = "select sum(unitprice)...
1
by: leegold2 | last post by:
// This statement below inserting one field works: // mysql_query("INSERT INTO page (page_url) VALUES (\"$url_field\")"); But I wanted to insert into two fields so I was trying all sorts of...
79
by: Tim Tyler | last post by:
PHP has some pretty funky error messages: "parse error, unexpected T_IF"; "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING"; Humans often see these - shouldn't they be more...
4
ronverdonk
by: ronverdonk | last post by:
Sorry acousticmarc, I accidentally removed your thread!! - Ronald Hello, first time post here and novice php user. Man, this is frustrating the hell out of me. I've got a timecard database...
6
by: eekabob | last post by:
I'm a newbie............trying to send an Cc email a customer who fills out a quote request form but can't fiqure out how to do it......... I have this code... $headers .= "Cc: I want this to...
5
by: tao | last post by:
Hi, I meet some problem in debugging php files. this is the one running smoothly $query = "select account.id as account_id from account where (date(creationdate)=date(current_date-interval...
5
coolgames
by: coolgames | last post by:
i don't know what's wrong with this error: "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/yuvoo/public_html/uzumakionline/modules/village_music.php on...
4
by: Dave Kelly | last post by:
This is the header of the email I am trying to send. My 'ReplyTo' is not working as planed/ I tried googling thsi and did not get a good answer. I examed the code before, as suggested and tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.