i m trying to display a message based on code status against the code in the database for on the code entered.
however it gives me a parse error 6 1463 Dormilich 8,658
Recognized Expert Moderator Expert
the opening brace of line #32 has not been closed.
but why doesnt it display the message in 50 53 and 55 when the condition is correct
Dormilich 8,658
Recognized Expert Moderator Expert
those lines are syntactically correct.
JKing 1,206
Recognized Expert Top Contributor
The function mysql_query returns a resource. You will need to use another function such as mysql_fetch_row or mysql_fetch_array to access the data. I altered your code so you should be able to copy and paste. Give it a try and let me know how it works out for you.
perfect it works thanx jking and dormilich
another thing ...if say at the time of displaying the message i dont want the text box to enter code to be displayed how can i hide it and disable it?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: entoone |
last post by:
I'm getting the following error Parse error: parse error, expecting `','' or
`';'' in /home/notarywe/public_html/php/update2.php on line 108
Here is line 108
<input type="text" name="ud_first"...
|
by: Stuart Rogers |
last post by:
I have just setup my website with a new linux hosting service. I have
copied over my scripts and the jpgraph (the stable version) files from my
working local lan linux server. The hosting service...
|
by: Marcin Dobrucki |
last post by:
I've been having some problems with a parse error that I can't figure
out (PHP 4.3.11 on Solaris9). Sample code:
<?php
// getting strange parse errors on this
class A {
var $value;
function...
|
by: Jim Anderson |
last post by:
I'm just starting to use XML and I'm thinking of using
DocBook for some documentation. I tried my first simple
example from the book and I'm getting a parse error.
I iniitally typed in the...
|
by: urmyfriend |
last post by:
Hi,
I am getting the parse error while i try to execute a simple sql query in postgres.
java.sql.SQLException: ERROR: parser: parse error at or near "and" at character 58
The Query has...
| |
by: Sianaba |
last post by:
I am getting help from a website to fix my malware etc problem....
i was instructed to run a Kaspersky scan and now when i try to get to my specific forum i get this come up instead:
Parse error:...
|
by: DavidPr |
last post by:
I'm getting - parse error, unexpected T_LNUMBER - error messages referring to the last "if" lines of this code.
What I'm trying to do is check the database and if this user's article row isn't...
|
by: Lawrence Krubner |
last post by:
Imagine a template system that works by getting a file, as a string, and
then putting it through eval(), something like this:
$formAsString = $controller->command("readFileAndReturnString",...
|
by: micky125 |
last post by:
Lo all,
Ive been getting the error message
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/moneill/public_html/input.html...
|
by: angelicdevil |
last post by:
i have 2 tables 1 is status_type with field name status and other is users with field username and status
now i want that the first listbox lists all status from status type ( this i have achieved...
|
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,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |