PDA

View Full Version : php is screwing me up!


Xavior
26-04-2003, 01:07
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...

Xavior
26-04-2003, 01:10
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~!~!~!~!~!~

Xavior
26-04-2003, 01:19
eh.. sorry for some typos here..
it's mysql_fetch_row() instead of mysql_fetch_rows()..
bleahz..

Xavior
26-04-2003, 01:20
ok nbm.. solved it once again... argh...
somehow.. once again.. without changing the codes it worked.. hmmz..
is it my provider or what?

Xavior
26-04-2003, 03:10
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~

Xavior
26-04-2003, 03:19
haiz.. ok fixed it again...
somehow somewhere... below.. i printed an $i..
lolz..

2cents
26-04-2003, 04:33
you seems to be enjoying talking to yourself, lol. But anyway, glad you fix it. :)

Xavior
26-04-2003, 07:20
well...
at least than going crazy over it..
hehe.. =P

choon
26-04-2003, 12:54
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

Xavior
27-04-2003, 01:36
thanks choon..

choon
27-04-2003, 05:40
Originally posted by Xavior
thanks choon..

You are welcome ;)

Anyway, what editor program you use for doing your PHP coding?

Kindest regards,
Choon

Xavior
28-04-2003, 01:47
notepad.. =x
or rather.. the program my webhost provided me with..
web file manager... by plesk...

choon
28-04-2003, 03:17
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

Xavior
28-04-2003, 07:46
editplus?
hmm... ok, i will give that prog a try :D
thanks

alien
28-04-2003, 08:18
I still prefer UltraEdit..

:)

fred
28-04-2003, 09:51
yes, ultraedit rules