View Full Version : php is screwing me up!
some how or another..
php has been screwing me up...
mysql_fetch_rows()
it sometimes works sometimes it doesnt..
any1 can help??
$result = mysql_query("SELECT blah blah blah");
while ($row = mysql_fetch_rows($result)) {
blah blah blah..
}
it gives me this error...
Fatal error: Call to undefined function: mysql_fetch_rows()
sometimes it works fine.. sometimes.. it gives me that kind of error...
and also.. a hell load of problems..
is it me or is it my provider???
pls help asap...
o yah.. another question..
can i have 2 or more mysql_fetch_rows()
in one single php script???
i am doing this eh...
news and comments thingy..
if i am viewing only one piece of news..
it will also display the comments..
the news and comments are in different tables..
so i will need to activate mysql_fetch_rows() twice..
i actually got one of them to work.. but the other returned me the error as above.. help~!~!~!~!~!~
eh.. sorry for some typos here..
it's mysql_fetch_row() instead of mysql_fetch_rows()..
bleahz..
ok nbm.. solved it once again... argh...
somehow.. once again.. without changing the codes it worked.. hmmz..
is it my provider or what?
for ($i = 1; ; $i++) {
if ($i > 10) {
break;
}
}
the above code..
by rights there shouldnt be anything printed out right?
but my output is "11"
in the first place.. there shouldnt even be an 11.. as it has already broke out of the chain.. and moreover.. i nv gave any print command...
argh~
haiz.. ok fixed it again...
somehow somewhere... below.. i printed an $i..
lolz..
you seems to be enjoying talking to yourself, lol. But anyway, glad you fix it. :)
well...
at least than going crazy over it..
hehe.. =P
Hi,
All mysql related functions in php can be found at http://www.php.net/manual/en/ref.mysql.php and scroll down to see all the available functions :)
Hope this helps!
Kindest regards,
Choon
Originally posted by Xavior
thanks choon..
You are welcome ;)
Anyway, what editor program you use for doing your PHP coding?
Kindest regards,
Choon
notepad.. =x
or rather.. the program my webhost provided me with..
web file manager... by plesk...
Originally posted by Xavior
notepad.. =x
or rather.. the program my webhost provided me with..
web file manager... by plesk...
If you are using windows OS, you can consider to use EditPlus :)
Kindest regards,
Choon
editplus?
hmm... ok, i will give that prog a try :D
thanks
I still prefer UltraEdit..
:)
vBulletin® v3.5.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.