|
arifliminto86 wrote: can u solve this problem
What is the problem? Etiquette is telling people what your problem is, rather than throwing code at them and asking for the problem to be solved
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Yes I see it. The Variable that holds the SQL statement is called "$querry", whereas you refer to it as "$query".
In addition to that you have made optimization mistakes.
echo"<TABLE BORDER = '1'>";<br />
echo"<tr>";<br />
echo"<th>Name</th><th>number</th>";<br />
echo"</tr>";<br />
<br />
while($row = mysql_fetch_array($result))<br />
{<br />
echo "<TR>";<br />
echo "<TD>",$row['firstname'],"</td>",<br />
"<TD>",$row['lastname'],"</td>",<br />
"<td>",$row['adress'],"</td>";<br />
echo"</tr>";<br />
}<br />
echo"</table>";
While be formatted faster if written like this:
?><br />
<TABLE BORDER = '1'><br />
<tr><br />
<th>Name</th><th>number</th><br />
</tr><br />
<br />
<?php<br />
while($row = mysql_fetch_array($result))<br />
{<br />
echo "<TR>";<br />
echo "<TD>",$row['firstname'],"</td>",<br />
"<TD>",$row['lastname'],"</td>",<br />
"<td>",$row['adress'],"</td>";<br />
echo"</tr>";<br />
}<br />
?><br />
</table>
While that may seem to be a subtle difference it can save about 25-40% of the time it takes in execution (essential for large amounts of printed data)
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
|
No Problem
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Hello all,
I've inherited a site that has a table-based layout . The center TD in the table is where all the content goes. We can't change the layout from a table-based one just yet, but they still want the content in the center TD to scroll while the rest of the layout remains unmoved. They'd also like to accomplish this without the use of frames and without scrollbars appearing. I think this is likely to be impossible without breaking out of the table-based layout. Just so I have asked people smarter than me though, any ideas on how to make this happen?
Thanks,
Will
PS. Why isn't there a smiley of someone banging their head against a wall?
|
|
|
|
|
gantww wrote: They'd also like to accomplish this without the use of frames and without scrollbars appearing.
Why wouldn't they want scrollbars in the center cell, if they intend it to scroll?
Regardless, you can probably just set the dimensions of the table such that the whole thing fits on screen at once (100%x100%, assuming there are no margins or padding on the body). Then do the same for the table cells and use the overflow:hidden style on the center TD (overflow:auto would show scrollbars).
|
|
|
|
|
100% is broken in IE.
[edit: No, I don't mean "100% of IE is broken" ]
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
More 70%....
But since when is it broken, I've used it a couple of times.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
The 100% specifier has (in my experience) been less than ideal because it sets the width/height at 100% of the page load size and doesn't resize the object if the window resizes.
Maybe I just expect different things from 100%...
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Oh yes, that is true...
But think of it from the perspective of the MS employee....
"I just had the bloody browser render the page and now they want it to do it again just because they want a different window size! Forget it, they can refresh!"
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
lol.
Like the feel the pain each and every page render
(ah...if only it were so )
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hey just whilst you're reading Chris, I was wondering if you are trying to channel more Web Dev to CP..
I love CP and it is pretty much the only forum I use.... But my primary Web Language is PHP and JAVA (I call it Pava).
Anyway that is besides the point, are you trying to encourage more Web Developers to go to the forums, or are you just sticking to .NETers?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Bradml wrote: I was wondering if you are trying to channel more Web Dev to CP..
Always. But we are concentrating solely on Visual Studio and .NET topics simply to ensure discussion and content is focussed.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: Always. But we are concentrating solely on Visual Studio and .NET
Slightly contradictory isn't that?;P
I care to remind you that you can also use Visual Studio to create Web Services.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Chris Maunder wrote: The 100% specifier has (in my experience) been less than ideal because it sets the width/height at 100% of the page load size and doesn't resize the object if the window resizes.
Funny thing 'bout that: it works fine in quirks mode, but screws up in standards mode.
You know, i hate to say it, but i'm starting to suspect that the CSS support in IE6 is just a tad... half-baked.
|
|
|
|
|
Shog9 wrote: i'm starting to suspect that the CSS support in IE6 is just a tad
There is CSS support in IE6 now?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
My chat programm written in ASP.net is not successfully finished . How can i connect the application to the other server or to the local server?
Thank you!!!!!!!!!!!!!!!!
mahi
|
|
|
|
|
Most chat programs are not written as web apps. Either way, they all connect to a central server, and it's the server that maintains the connection between users.
mahili wrote: or to the local server?
If it's an ASP.NET app, it's already connected to the server.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
Hello my friends.I develop a website on ASP.net but i still have some problems with my site.The page refreshes itself everytime an event is happened , this is for example one clicks a 'send' button or whatever and please tell me how to stop it.My site integrets a descussion board and i design it in the same way as the code project descussion board so i can't find tree view control in ASP.net web form tool box.I want the tree view beacause replies under a specific subjects should be placed under it's head subject.Or if anyone knows what the designers use to develope this code project descussion board please notify me cause' i really need to know. write me soon
-- modified at 19:55 Sunday 26th November, 2006
|
|
|
|
|
If you need an immediate answer, why not use the right forum ?
mahili wrote: please tell me how to stop it
By turning off autopostback, or using AJAX ( probaby via Atlas )
mahili wrote: so i can't find tree view control in ASP.net web form tool box.
There isn't one. There are a number of free or commercial ones you can use.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
How can i find these free or commercial once.please guide me,cause' i have to submmit my project on wdnesday and what do mean by outopostback?
Thank u so much for your answer!!!!!!!!!!!!
|
|
|
|
|
OK - so in summary:
mahili wrote: How can i find these free or commercial once.please guide me,
You don't know how to use google
mahili wrote: what do mean by outopostback?
You don't know what a postback is
mahili wrote: i have to submmit my project on wdnesday
But you've taken an ASP.NET project. Rentacoder, right ?
If you want your page to do stuff, it needs to either post back ( that is, refresh ) when people do things like click a button, or use Ajax. If you don't know enough about ASP.NET to know what a postback is, the odds of you learning AJAX in three days are very low indeed.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
wow dinner *and* a show
|
|
|
|
|
mahili wrote: wrote:
what do mean by outopostback?
No, he meant "Outback". He wants to know where to get a really bad steak with onions.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|