Undefined variable: oCustRes

Reply

Join Date: Mar 2008
Posts: 1
Reputation: qemmal is an unknown quantity at this point 
Solved Threads: 0
qemmal qemmal is offline Offline
Newbie Poster

Undefined variable: oCustRes

 
0
  #1
Mar 10th, 2008
i am beginner.

if this error occur ;

Undefined variable: oCustRes

what suppose i do?
i want to use the variable in javascript.
when i define the variable, a database error will occur.
where should i define the variable?
in the javascript or outside?

Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 569
Reputation: ryan_vietnow is an unknown quantity at this point 
Solved Threads: 71
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: Undefined variable: oCustRes

 
0
  #2
Mar 10th, 2008
you can use variable oCustRes in javascript:

<script type=text/javascript>
var oCustRes="Hello World!";
print oCustRes;
</script>

However you can also define oCustRes in PHP by using define function:

  1. define("oCustRes", "Hello world!");
  2. echo oCustRes; // outputs "Hello world."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC