eric1235711
-
Posts
107 -
Joined
-
Last visited
Never
Posts posted by eric1235711
-
-
try something is this way:
start loop
print open tr
print retail message in td
if Pcode is RT {print retailprice in td}
else {print empty td}
print wholesale mesage in td
if Pcode is WS {print wholesale in td}
else {print empty td}
print close tr
end loop
-
that code does this:
if P code is RT do:
print "<tr class=\"d".($i & 1)."\">"; print "<td>Retail</td>"; print "<td>$".$row[RetailPrice]."</td>";
if P code is anything but RT do:
print "<td>Retail</td>"; print "<td>$".$row[RetailPrice]."</td>"; print "</tr>\n";
you are putting inside the condition codes that should be outside.
-
I must check for that, thanks
-
Hello.
That thing in yp may be done with JS. About doing that with PHP isn't that hard...
-
Ooops, sorry
PS Pad already got code snippets, but it's a bit different of TextMate (it's such code completition)
and It got a very nice line bookmarking system, and for me it's better than code folding.
now they just need to make it cleaner making a way to hide those tons of little tools... but this is the way: ignore them.
-
I find that I'm moving to pspad... it got tons of little tools, but I can just ignore them...
It would become perfect if they do 3 things:
1. create a lite version (without those small tools such Eye Dropper, Color Translator or Lorem Ipsum generator) they would at least make a config to make them invisible
2. Put code snippets (that funny auto code that TextMate got)
3. Code folding
-
ok, later I'll see that
-
for sure, I can't have two classes with same name, but I find that PHP should throw an error....
-
error_reporting(E_ALL & ~E_NOTICE);
the problem is that it shows the browser's "page not found" error message...
try reproducing the error:
create two files with
class test{ function __construct(){ echo "ok"; } }
you can change the methods and properties.
and then include both in another file, or make one file include the other.
Boom! "Page Not Found" LOL
-
Hello,
I lost some time trying to find out a problem: when I included a file in my script, it showed a "Page not found" error.
I discovered that the file I was including had another version of a class that is already set in my "common header include".
well, my doubt is:
"Why PHP didn't say that there were classes with the same name???"
thanks in advance!
-
Ajax is the way
-
Hello
My name is Eric, I'm Brazilian, japanese blood XP, 22 yrs old, finished IT highschool last year, but I'm good only with algorithms and db modeling.
I started learning VB3 about ten years ago.
I played with actionscript with 16.
and started coding in php with 19.
I always liked coding, but always for fun, it's always was such a toy for me.
Now I'm sad because I'm conding boring things, only to make money...
I'm training Aikido, I started in the beginning of this year. I'm loving it.
I play a little bit of piano/keyboard. My prefered artist is Björk.
I'm not married and also not dating.
I almos don't watch tv but I love the SwatKats, only the SwatKats.
nice to meet u. -
Hello
I got problems with webservice for more than six months...
I just can't understand those documentations. It looks like there's not a standard, and it makes me more confused. And some times the doc seems not updated with the running service...
is there an easy tut or a receipt to make webservice integration?
please help ??? ??? ???
-
I like Eclipse very much.
It's originaly made for Java, but there's a version ported to PHP.
It got very nice code completition, syntax checking, and many powerful features, google it.
Much people don't like it because it don't have WYSIWIG.
-
ok thanks
-
Soap is a surfactant used in conjunction with water for washing and cleaning.
just kidding :P
I've been more than six months trying to understand it and make it work...
It's such AJAX, a way to use many resources to do something.
Soap is a way to make two servers to communicate based in xml.
But I'll ask you to help me too: I still can't make them work... -
http://www.regular-expressions.info/
Code:
<?php $output = preg_replace("/[^a-zA-Z0-9.!?, ]/", "", $input);// and so on ?>
-
you're doing an mysql_fetch_assoc just after the mysql_query line:
It's reading the first reccord and moving the pointer to the next reccord.
-
I actualy work "correcting other's b*** s***" and it's too boring, sometimes it makes me LOL, sometimes it drives me crazy, sometimes I wanna cry.
People do very uggly things...
It's no fun correcting other's codes...
And also there's no fun in "back-office" software development.
I find corporate thing too boring.
I don't like doing things that are not funny... but now what i need is money :(
I also like to teach people. It's very nice to see people learning, growing, doing more than they could do.
If I could live only moderating and maintaining a help forum or something like that, it would be nice... -
Hello, I'd like to ask for a WebService Forum
I got many doubts with webservices, soap, wsdl, and such...
I already searched a lot in google, but I didn't find any help.
thanks
-
apache handles linux's symbolic links?
-
hello
I got the following code:
<!-- ... --> <body onLoad="document.getlementById('loadingdiv').style.display='none';"> <div style="width:100%; height:99%; position:absolute; text-align:center" id="loadingdiv"> <!-- ... -->
the div contains an "loading" message.
the problem is that it works fine in the page from where I copied,
but in the new page, it looks a lot missplaced: that 100% width looks like 150% and that text-align is almost text-align:right
when I test without the div content, it keeps streching in the same way...
It's driving me mad, I can't realize what's happening... I just copied and pasted...
-
yes, It's missing a curly bracket...
find it by your self, it's not that hard...
Just and advice: Your code is a little messy...
Go identing your code, you will find it at a glance.
the last bracket is wrong and also it looks like is missing one closing bracket in the beginning.
-
and you have to use single quotes or double quotes for the values
such:
<?php $SQL = "INSET INTO table (`field1`, `field2`) VALUES ('value1' , 'value2') "; ?>
Which PHP-Editor do you think is the best?
in Miscellaneous
Posted
I'd love if I could use Eclipse...
The problem is that my boss want the people here to work trough FTP...
Now I'm using E TextEditor + NetDrive. I'm almost buying it, but it still needs some fixes...