|
Fred_Smith wrote: Of course I can see the point of it - I just wish it.. I don't know.. wasn't so cumbersome. I find it so.
I did at first also, but after working with it a while I got the hang of it.
We humans don't like to change very much and once we get used to doing something a certain way we don't like to shift paradigms.
Fred_Smith wrote: And while such re-writes may be easier and quicker, the original write isn't
After you develop some templates it becomes easier to get a site up because you have the basic structure coded and tested so all you need to do is add copy.
Fred_Smith wrote: I can't help feeling this obsession with table-les layouts is just that
I agree that people get fanatical about the latest design paradigms but I have seen tables used to excess also (nested way too many levels). Bad designers will produce bad designs regardless of the technology.
Fred_Smith wrote: And by the way, I've been writing code since before you were born (probably)
I'm glad you qualified that with probably since I was born when ENIAC was in the process of being moved from the U of PA to the Aberdeen Proving Grounds. Not a lot of programming went on back then unless you were on the original project toggling switches or plugging in jumper cables.
|
|
|
|
|
Hi,
I'm trying to create a page with a header div, a left sidebar div and a right content div, with a footer div at the bottom.
Sounds simple doesn't it! Have been trying for a couple of hours and so far it's just not working.
Wondered if anyone knows of any good tutorials or articles, or has any sample code, that explain how to do this?
I've looked at loads of different articles, but a lot of them don't do quite what I want, or simply the code isn't cross-browser compatible.
Some idea of where to look would be much appreciated
Thanks
Chris
|
|
|
|
|
Take a look at the site http://www.alistapart.com[^]. They have lots and lots of tutorials on this. Plus, consider buying the Eric Meyer books on CSS. They are bibles if you want to work with CSS.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
I am installing SharpForge on my computer.
I am getting error when i went through the intallation wizard.
Error exception details System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Anybody have any idea why I am getting this error?
sdfsdgvfd
|
|
|
|
|
Hi all,
i have a procedure below:
//==============MySQL=======================================
CREATE PROCEDURE `sp_select_customer`(custid int)
begin
select * from customer where customer_id=custid;
end;
//================PHP code=====================================
$con=mysql_connect("localhost","root","root") or die("Connection is fail.");
$db=mysql_select_db("mydatabase",$con);
$result=mysql_query("CALL sp_select_customer(9)");
// it's not working when i use CALL PROCEDURE
$row=mysql_fetch_array($result);
echo $row['0'];
//===============================
Please help me!
Thanks,
Hy Chan Han
|
|
|
|
|
What error are you getting?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Here is error:
=============================
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\itec\select.php on line 8
=============================
It's not working when procedure use select statement.
I use insert statement it's working ok.
Thanks,
Hy ChanHan
|
|
|
|
|
Try to use multi_query instead of mysql_query .
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Error appeared:
Fatal error: Call to undefined function multi_query() in C:\AppServ\www\itec\select.php on line 5
Hy Chanhan
|
|
|
|
|
I have tested in my machine. (Note: I'm using the latest version of PHP and MySQL. )
<?php
$conn = mysql_pconnect( "localhost", "root", "root", 65536 )
or die( "Failed to connect to MySQL server" );
mysql_select_db( "mydatabase", $conn ) or die( "Could not select test database" );
$result = mysql_query( "CALL sp_select_customer(9)" )
or die( mysql_error() );
$rows = mysql_num_rows( $result );
echo "Rows=$rows<br/><br/>";
while($thisrow=mysql_fetch_row($result))
{
$i=0;
while ($i < mysql_num_fields($result))
{
$field_name=mysql_fetch_field($result, $i);
echo $thisrow[$i] . " "; //Display all the fields on one line
$i++;
}
echo "<br>"; //put a break after each database entry
}
?>
Hope it will work in your side too.. Let me know the result..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
Thank you very much for your code, now it's working very well in my site.
Hy ChanHan
|
|
|
|
|
Hy Chanhan wrote: Thank you very much for your code, now it's working very well in my site.
If my code is useful for you, please vote my message. thanks.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hello again,
When i refreshed 4 or 5 times i appeared this error message:
why?????
PROCEDURE bbg.sp_select_customer can't return a result set in the given context
Hy ChanHan
|
|
|
|
|
Hy Chanhan wrote: PROCEDURE bbg.sp_select_customer can't return a result set in the given context
I will check again and will let you know..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
seem like i forget to close the connection.. try to add the code for closing connection..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
It's still not working.
Error is the same above.
Hy ChanHan
|
|
|
|
|
hi Guys
Is there any live application to search for code, we have lots n lots of sites to get the source codes, why cant we make a web application with a good search engine to search pure text source code, anything related to code.
For eg. store procedure's, HTML, ASP codes, technical text, code-behind, javascript, java codes,
only pure text should be stored, its should be a very simple application with no links, only to maintain and retrieve, there will be no data editing for the users.
uploading of files are not allowed since many technical websites are providing this feature,
The plan
Here the users can store information taken from the internet(pure text) when he/she visits for reference, later he/she need not come to this same link to take the specific code, instead he/she can search the code in this new Code Manager portal,
the user will have to provide the description of code or technical text and each source code should be allocated under different sets,
for eg. if its HTML code, the language should be set as HTML for this source code
How the search works
A search with different criteria should be given..
based on desciption
based on language
based on date stroed
based on unique words,
base on tags
we should make this application very simple to handle
winnie
winnie
|
|
|
|
|
good mornig!
i have to diasplay table in html in a mail
when we write message="..."
it won't work .
So pls guide what additional is required to have table ina mail.
hope u understood the question pls guide.
thank you.
yogita
|
|
|
|
|
You need to set HTML format to your message object.
mailMsg.BodyFormat = MailFormat.Html
More ~ http://www.codeproject.com/useritems/SendMailSMTPWebConfig.asp
Private Sub SendClick()
Dim mailMsg As New MailMessage
Try
mailMsg.To = "<tomailid>"
mailMsg.From = "<frommailid>"
'mailMsg.BodyFormat = MailFormat.Text 'optional for sending text in body
mailMsg.BodyFormat = MailFormat.Html
mailMsg.Subject = "Statistics Report"
mailMsg.Body = "<html><body><Table><tr><td>Hi,</td></tr><tr><td>Details of the Statistics :</td></tr></Table></body></html><html><body>" & "sometext" & _
"</body></html><html><body><Table><tr><td> </td></tr><tr><td>NOTE: This is an automated mail. Please, do not reply.</td></tr>" & _
"<tr><td>*Green coloured rows indicates temporary demos</td></tr>" & _
"<tr><td>**All statistics are based on the page naming conventions Eg., 22_10_2005_</td></tr>" & _
"<tr><td> </td></tr><tr><td>Regards,</td></tr><tr><td>some text,</td></tr><tr><td>some text,</td></tr>" & _
"<tr><td> Some text </td></tr></table></body></html>"
SmtpMail.SmtpServer = ConfigurationSettings.AppSettings("SmtpServer")
SmtpMail.Send(mailMsg)
'xm.InnerHtml = "Your message has been sent"
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
People,
I have this silly problem: I want to get the client size of the browser window, to set a table to be this size. I've tried every property of both screen and window DOM objects, I can only retrieve the window position and the screen resolution, or the screen resolution minus the taskbar height.
Anyone have any ideia on how to do this, please?
|
|
|
|
|
Could you use:
<table width="100%" height="100%" bgcolor="red">
It works under IE6. Otherwise try this article[^]
Regards
Andy
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".
|
|
|
|
|
Thanks, the article was extremely useful.
|
|
|
|
|
|
hi,
i have an asp page which display numbers from database,in the database its display properly for example ,
123,234,111,222
but when i call it from asp page it display like that
123234111222
this is a very confusing display.
i try the following solution.
<br />
Response.Write formatnumber("" & rs2.Fields(i) &"",""3"") "<Th align=""center""><FONT FACE=""ARIAL"" SIZE=""1"" color=""#800000""></FONT></Th>"
its giving me the following error:
Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/allpage.asp, line 126, column 53
Response.Write formatnumber("" & rs2.Fields(i) &"",""3"") ""
----------------------------------------------------^
2> i also try formatcurrency
3> and with format its giving another error,not recognising
any help would be greatly appreciate
thanks
|
|
|
|