Hello,
I setting up my mysql-server and php on IIS6 and it works almost fine.
But I got the next error:
Warning: mysql_numrows() : supplied argument is not a valid MySQL result
resource in file.php on line 46.
But I'am sure that the code is good, because I have use the code very much.
Create a connection is working, mysql_query is working but
mysql_Numrows($ query) is not working:
$query = mysql_query("SE LECT * FROM users");
if (mysql_Numrows( $query)>0)
{
code!!!
}
I have seen this error before, but I can't remember the solution anymore.
I think(I now it almost sure) that it has to do with the installation of PHP
or MYSQL.
PHP-version 4.3.7(mysql is built-in)
MYSQL 4.0.20d
I hope that somebody can help me to fix this problem.
So I can go further with my website!
Willem 2 4239
$query = mysql_query("SE LECT * FROM users") or die(mysql_error ());
Before calling the mysql_num_rows( ) function, make sure ur sql query has be
executed correctly. if (mysql_num_rows ($query)>0) { code!!! }
ccton
-- www.vicdir.com
"Willem Berendsen" <wi****@schoppe nsnieder.nl> дÈëÓʼþ
news:cc******** **@reader10.wxs .nl... Hello,
I setting up my mysql-server and php on IIS6 and it works almost fine. But I got the next error: Warning: mysql_numrows() : supplied argument is not a valid MySQL result resource in file.php on line 46. But I'am sure that the code is good, because I have use the code very
much. Create a connection is working, mysql_query is working but mysql_Numrows($ query) is not working: $query = mysql_query("SE LECT * FROM users"); if (mysql_Numrows( $query)>0) { code!!! }
I have seen this error before, but I can't remember the solution anymore. I think(I now it almost sure) that it has to do with the installation of
PHP or MYSQL. PHP-version 4.3.7(mysql is built-in) MYSQL 4.0.20d
I hope that somebody can help me to fix this problem. So I can go further with my website!
Willem
Thanks!
I forgot to select the right database!
Now its working fine!
Willem
"CryingClin ton" <Cr***********@ hotmail.com> schreef in bericht
news:cc******** ***@mail.cn99.c om... $query = mysql_query("SE LECT * FROM users") or die(mysql_error ());
Before calling the mysql_num_rows( ) function, make sure ur sql query has
be executed correctly.
if (mysql_num_rows ($query)>0) { code!!! }
ccton
-- www.vicdir.com "Willem Berendsen" <wi****@schoppe nsnieder.nl> дÈëÓʼþ news:cc******** **@reader10.wxs .nl... Hello,
I setting up my mysql-server and php on IIS6 and it works almost fine. But I got the next error: Warning: mysql_numrows() : supplied argument is not a valid MySQL result resource in file.php on line 46. But I'am sure that the code is good, because I have use the code very much. Create a connection is working, mysql_query is working but mysql_Numrows($ query) is not working: $query = mysql_query("SE LECT * FROM users"); if (mysql_Numrows( $query)>0) { code!!! }
I have seen this error before, but I can't remember the solution
anymore. I think(I now it almost sure) that it has to do with the installation of PHP or MYSQL. PHP-version 4.3.7(mysql is built-in) MYSQL 4.0.20d
I hope that somebody can help me to fix this problem. So I can go further with my website!
Willem
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jaysonsch |
last post by:
Hello!
I am having some problems with a database query that I am trying to do.
I am trying to develop a way to search a database for an entry and
then edit the existing values. Upon submit, the new values are updated
in all corresponding tables (the function of the pages in question).
However, on the page that does the DB update, I also want to do some
checks on the data before performing the update.
Now, the problem that I am...
|
by: cover |
last post by:
I have a table with 50 fields that receive input depending on whether
that input came in from a 'shaker' form or a 'conveyor' form. Input
from the 'conveyor' form might populate 25 fields while input from the
'shaker' form will populate another 20-25 fields but not the same
fields (however there are about 10 common fields to both). I'd
thought about using two tables (one for 'conveyor' and the other for
'shaker') but thought I'd try just...
|
by: ZafT |
last post by:
Hi all - thanks in advance for any help.
I am trying to write a simple update script. In fact, I am re-using code
that I've used before (successfully) but I can't figure out why it is not
working. The script completes without any errors, but does not actually
update the database.
Also, the "check for same name" query works fine, and will return the proper
error if a duplicate is found.
|
by: darko |
last post by:
I'm pretty good at php and mysql, it's been sometime now that i was trying to find a way to output result, more then 1 at a time, so i came up with this function
function screenshots()
{
global $website_link;
$name1 = $_GET;
$name= str_replace("-", " ", $name1);
$query = @mysql_query("SELECT * FROM `games` WHERE `name` = \"$name\" LIMIT 1");
$id= @mysql_result($query, 0, "id");
|
by: cover |
last post by:
I'm trying to populate the pulldown menus of a single input form
through queries from a single table. The three columns are 'name',
'type', and 'status'. The name table runs to approx row 23, the type,
to row 8, and status, row 9. . I'm using the following code to
populate the form pulldown menus::
<?php
$query = "SELECT DISTINCT status
FROM $table";
$result = mysql_query($query);
| |
by: atyndall |
last post by:
OK, this is the relevant portion script:
<?php
$username = '__'; // MySQL Database Username.
$password = '__'; // MySQL Database Password.
$server = '__'; // MySQL Database server (most likely localhost).
|
by: DavidPr |
last post by:
I have a Bible database and I need help writing the query a little bit of styling.
I want to display all the books and chapters (which will be linked to another page -passage.php) that will display all the verses in that chapter. Here's waht I'd like it to look like:
http://www.biblegateway.com/versions/?action=getVersionInfo&vid=49
I've tried this but it goes all the way across the screen and I get like 28+ of each chapter. That times 50...
|
by: raaman rai |
last post by:
Pls see the code below, where i wanted to select all the records from my table where the submdate (submission date) is greater or equal to today's date. Whereas i have two or three records in my table which has this date greater than today but still then i get only one record displayed. I dont find any problem anywhere but still then i dont get the result displayed as i wanted. Pls help me where i have the problem.
<?php
global $database;...
|
by: monion |
last post by:
One more question.
How can I get query values assign them to a variable, but not show them?
for example size, $f4 in the following: How can I pass that value $f4 to the form handle page to submit to the database. I can clearly see how to pass $f2 with quantity stuck on the end.
Basically, I need to pass 3 things: 1) item#, 2) item#quantity and 3) size to a new database.
mysql_select_db("inventory");
$query="SELECT * FROM...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |