Login-signon script is not working....what could be the reason
I am attaching the relvant portion of the script which is not working. login.php calls this script logincheck.php
I have created a table and passed values into the table (in oracle). However echo shows no values being passed.
<?
$v1 = $_REQUEST[user_id];
$v2 = $_REQUEST[auth_id];
//$v3 = $_REQUEST[brcd];
// Checking in ORACLE database USerID, Passwd & Branch Code Combination
include 'ConnDB8i.Php';
//echo 'Passed values'.$v1.$v2.$v3;
if(!$dbconnect)
echo "<br><br><br><br><table width=300 align=center border=1><td >Database is Not available...!<br>Try after sometime.</td></table>";
echo "<input type='hidden' name='conn' value='NO'>";
return;
// Connecting to ORACLE 8i
$mSql = "Select user_name,auth_id,branch_cd,user_lock,user_type from scfu_users where user_id='".$v1."'";
echo "<br>'paased values'.$mSql";
$stmt = OCIParse($dbconnect,$mSql);
OCIExecute($stmt);
$nRows = OCIFetchStatement($stmt,$result);
echo "<br>'passed values'.$nRows";
if($nRows==0)
echo "<Br><font size=5>Invalid User Id</font>";
OCIFreeStatement($stmt);
OCILogoff($dbconnect);
return;
reset($result);
$colcnt = 0;
$i=0;
$nRows reurns 0...... why?
$mSql is correct. It returns values as expected.
The error I am getting is invalid User ID.Obviously $nRows is 0 when it should not be so.
Any suggestions/answers please??
JJZ
A couple of things I noticed:
Add error handling and check the return value from the OCIExecute() call.
Use bind variables in the WHERE clause to avoid SQL injection issues.
Use the most recent version of PHP and the oci8 extension that is
compatibile with your version of Oracle. (Or get the free version of
the Oracle DB from http://www.oracle.com/technology/products/database/xe/index.html )
-- cj
Similar Messages
-
TS3274 the battery of ipad is not charging, what could be the reason?
My ipad is showing' not charging' message after i plugged it in the AC socket, what could be the reason? How can i solve it?
Are you using the Supplied iPad Charger... Is the AC socket switched on...
If Yes to both... Try another Cable... one that you know works... -
Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this.....I have set the email setting to "push" mode. Moreover I can't edit the mail server address ....current it's on Yahoo SMTP server
Will it get rectified and restored...if so after how long. What could be the reason for such outage kindly share, as I am facing real problem because of this...
-
when I make a call or recieve a call, the voice of the other person is not heard. but speaker phone works. what could be the trouble. could you please help me in resolving this? iPhone 4, iOS 6.1.3.i had purchased my iphone 4 factory unlocked from usa last month.i am from india so will any apple service centre help me for this issue?
They will help you just make sure that you make a appointment before you go into the store. Also if the iPhone needs to be replaced and you are not within your year of hardware coverage, that is when they will ask you to pay a fee.
-
I just bought an Iphone 5s and I'm trying to charge it for more than an hour, it simply doesn't work. What could be the reason??
ELIZ BARB wrote:
The screen shows the apple and once in a while turns to blue.
A couple of things to try: What to do if your iPhone or iPad will not turn on
And: If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
If neither of these resolve the problem the phone is almost certainly broken. -
Not able to access blackberry world on Z10. what could be the reason?
not able to access blackberry world on Z10. what could be the reason? It wasn't issue earlier but facing it from last two days.
Please guys read other forums on this community before posting redundant issues.
Try this fix
Go to the games app.
At the bottom tap on games.
At the right bottom, you will notice three dots. Tap the dots
Tap the option to enter the blackberry world. Wait until the screen is loaded
Swipe right to Enter My World - > My Apps and Games.
Tap the three dots again to check for updates.
Update all the apps and close your App World.
Try accessing the app world in the standard way. Everything mus be fixed by now.
Twitter: @ukmight
1. Click on the " Like " button if you find anything helpful posted.
2. If any of the replies in your post has resolved your problem, mark the reply(ies) as " Solution ", so that others can readily view the solution instead of creating another redundant post. -
I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.
Try to connect in recovery mode, explained in this article:
iOS: Unable to update or restore
Before that, back up your device, explained here:
iOS: Back up and restore your iOS device with iCloud or iTunes
How to back up your data and set up as a new device
You can check your warranty status here:
https://selfsolve.apple.com/agreementWarrantyDynamic.do -
I had quite a few notes in the 'Notes' app. I suddenly find that all of them, except 3 have disappeared. What could be the reason and how can I get my notes back?
Not fully au fait with iCloud. I don't use it. But if you have done a backup to iCloud then this might help. This reply will refresh your post thereby giving others an opportunity to comment. Meanwhile, read up about iCloud in the User Guide. Here's the link to download it - http://support.apple.com/manuals/#ipad
-
i just update my iphone 4s to ios 7.0.4 and update my macbook pro to ios maveric. Now, my iphone 4s does not sound form the speaker and the volume button up and down also does not work.I could hear the sound through the earphone. Also the airplay disapear. Please advice how to downgrade to the previous OS
Please try going to your settings area of your display. Click on General and go to 'reset all settings'
Good luck! -
I have apple TV this is second time My money goes down to drain first time not even load a movie To night I was watching movie but stop never come back .what could be the reason?
I had the exact same thing happen ... for the second time. I'm done renting movies on Apple TV that I cannot watch, and don't get my money back. I have a strong Internet connection, and about 10 minutes into a movie and it stops and says that the movie will be ready to view in 55 hours. Rediculous ... and frustrating. I don't know how to fix this, and I disagee with the other person responding to you who said it was your network. I have a strong network, running through an Airport Extreme -- and this problem persists. I'm done.
-
My DVD write comes up with an error -43. Never done that before. What could be the reason. Please help
iDVD is not involved in the process at all.
What you want to do is create a data disk on a DVD. That's done by inserting a blank DVD disc in the optical drive, Option+drag the files you want to backup onto the disc icon on the desktop and then drag that icon to the Trash bin in the dock which turns into the Burn feature.
Try that (the Option+drag and see if you can get your files to burn.
OT -
on my ipad 2 video streaming stops after a few seconds, only sound is playing .what could be the reason and how to solve this problem.
I have a feeling that it may have started after upgrading to ios6.Hi,
Is this failing with Error 20 ?
Sometimes in a the router or modem if you use Port Forwarding then you are your Buddy may be missing the Screen Sharing Port.
The Screen Sharing part uses a different port to the Audio port.
As the port for Audio (And therefore Video) are known and can be port Forwarded it is the random Screen Sharing port that can be the problem.
iChat 3 info http://support.apple.com/kb/HT1507 that includes Bonjour and Jabber info
iChat 4 info http://support.apple.com/kb/HT2282
If you are not using (or your Buddy) UPnP then I would change the method of opening the port to that.
6:14 PM Saturday; June 20, 2009 -
Facetime on my IPad (IOS 7.0.2) has suddennly stopped functioning. What could be the reason and how can the problem be rectified ?
As for the downgrade Sorry, but Apple does not provide a downgrade path for iOS.
Because downgrading is unsupported by Apple we cannot discuss it on these forums, but you can use Google to find information on how to install an older version of iOS on any device.
Feel free to let Apple know at http://www.apple.com/feedback
I'd recommend you to restore your device as new in recovery mode and start from there:
http://support.apple.com/kb/HT1808 -
I have a problem with buying apps in itunes Store.
When you purchase the application fails payment.
Asked to update the map.
I have 2 credit cards with a positive balance.
In what could be the reason?contact itunes support
-
when i got my new iphone 4, its in recovery mode. while restroing with itunes, im getting error at restoring firmware stage? what could be the reason? pls help me for solution.
You got a new iPhone 4, and out of the box the phone is in recovery mode? If that's the case, return it.
If you don't want to do that. what error code are you getting?
Maybe you are looking for
-
What will happen if i let windows 7 scan and fix my ipod?
Everytime that i plug in my ipod into my laptop lately windows 7 wants to scan and fix it. I know not to unplug my ipod without waiting for it to discconnect first so i know that's not the problem.I have been using this ipod on this laptop since i bo
-
IPOD Not Recognized Correctly by Windows
3rd generation Nano ... worked fine until upgraded I-tunes to 7.6.1.9 ... now device manager sees IPOD but shows yellow balloon and exclamation point. I-tunes does NOT see the IPOD. Followed instructions in Apple article 305136 to uninstall and re-in
-
How do I transfer my lost data from ICloud back to my mini IPad
How do I transfer my lost data from my ICloud back to my mini IPad
-
File Content Conversion : Sender Channel
Hi I am trying to do content conversion in the Sender Channel from a flat file to a XML. My Target XML(message structure) looks like <H1> <H2> <D>Detail Record</D> <L1>line</L1> <L1>line</L1> </H2> <H2> <D>Detail Recor
-
Iphoto photoshop brousing -can only see photos in iphoto albums not in pict
Why can I only see photos in albums and not in the general area of iphoto? In the finder it seems like there are no photos in the folders. This started with my new camera a Canon A610 my older photos are there in any type of search. What can I do to