|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Don't have a clue what these mean.....
I'm getting the following error messages when I try to run my PHP code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:program filesapache groupapachehtdocsptvisionadmininsnewpatient.php on line 47 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:program filesapache groupapachehtdocsptvisionadmininsnewpatient.php on line 48 The two lines of code that the above errors are reffering to are: $row = mysql_fetch_array($result); $number = mysql_num_rows($result); Please please help....I've been beating my head against a wall for this for two days... |
|
#2
|
||||
|
||||
|
RE: Don't have a clue what these mean.....
Try adding this right before those two lines:
|
|
#3
|
|||
|
|||
|
RE: Don't have a clue what these mean.....
okay now it's saying this:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use nere ')' at line 1.... and then it repeats the above error messages... |
|
#4
|
|||
|
|||
|
RE: Don't have a clue what these mean.....
but that's near impossible b/c the code on line one is simply...
<?php |
|
#5
|
|||
|
|||
|
RE: Don't have a clue what these mean.....
what does your code look like?
|
|
#6
|
||||
|
||||
|
RE: Don't have a clue what these mean.....
No, that was a MySQL error. That error was on line one of your query.
|
|
#7
|
|||||
|
|||||
|
here is the code you asked about
php Code:
|
|
#8
|
|||||
|
|||||
|
RE: Don't have a clue what these mean.....
php Code:
The query is expecting a literal at the part 'where ssn=...', but you variable $ssn is something like "(01-23-45)". It ends up like 'where ssn=(01-23-45)'. This is causing the error. Change the query to be "where ssn='$ssn'". |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Don't have a clue what these mean..... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|