|
Yes. but it's easier to work with csv (comma separated value) files. you can export/import csv files from excel.
|
|
|
|
|
Thanks for your help brother. I am downloading .xls file from a website it is not in csv format there. can you Suggest me where i get information how to read .xml in php or any command?
Thank You
|
|
|
|
|
udch wrote: I am downloading .xls file from a website it is not in csv format there
Can't you save it as csv yourself?
Google: Read XML with PHP[^]
|
|
|
|
|
how to write the code in php and get the output
*
**
***
****
*****
*****
|
|
|
|
|
I assume that it's your intention for the last line to be repeated?
Why not just run through a loop, printing out a string and adding an extra character to it each iteration.
Once the loop has been run the correct number of times, print the last result again and you're done!
Think about the output needed:
*<br>
**<br>
***<br>
****<br>
*****<br>
*****<br>
Clearly, displaying each line involves printing the text, followed by printing a <br>
Perhaps you'd find the output line looking something like this:
printf("%s<br>", $starString);
|
|
|
|
|
IMO echo "*<br />**<br />***<br />****<br />*****<br />*****"; would suffice.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
|
|
|
|
|
I have 2 computer, they are connected together through a switch so i 've got LAN(my system just only 2 computers and has no connect to the Internet( no modem or router))
pc001 I got ip 192.168.1.1
pc002 I got ip 192.168.1.2
on pc001 i install xampp.
I hosting some website at pc001 and have some situation like bellow:
1.All website i created by Joomla work well and i can access these website from another computer(Everything good)
2.I created a forum (using MyBB Forum) , it work well when i access on the local computer(the computer which install xampp).
When i access forum from pc002 the result is not displayed correctly.
Can anybody help me to fixed this.
Thanks and regards
|
|
|
|
|
Check your configuration of your MyBB Forum is using the pc name / ip address as the hostname and not "localhost"
|
|
|
|
|
Thanks !
Have a good time Marc Firth!
|
|
|
|
|
Hey friends I am developing web page for some music production. What I wanted to ask is, there are a lot of links for a lot of lyrics. If I put the lyrics with their file name and when the user presses the link it reads the file and displays on a new page. But this is really bad(too slow). So I decided to do like CODEPROJECT's site did. i.e when we click one question(or answer) on a thread it display the message @ that page with in a fraction of mili second. So can any body help me how to do that so that I can display the lyrics next to the song as CodeProject's thread did?
I hope I will get some helps soon. Thank you
|
|
|
|
|
You need to use javascript and css to show/hide layers.
or use jquery to do it for you:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<script type="text/javascript" src="jquery.js"></script>
<script>
$(document).ready(function(){
$('.post').hide();
$(".title").click(function(){
$('.post').show('slow');
return false;
});
});
</script>
<body>
<div class="title">Title
<div class="post">song lyrics</div>
</div>
</body>
</html>
|
|
|
|
|
Thank you dude for your response ...... I am gonna try it ....but
Marc Firth wrote:
@ this line I already have another class ..... so how can I have both classes @ the same time? ...thank you AGIAN
|
|
|
|
|
I presume so. Not really sure what you mean TBH. You could post code so I can see what you mean.
|
|
|
|
|
Don't forget you need to download jquery to try my example.
|
|
|
|
|
why ? ...and what is jquery? ... doesnt it work just by placing it before the body?
|
|
|
|
|
http://jquery.com/[^]
You need to include jquery:
jquery is a javascript library that makes writing javascript easier. download it and include it.
|
|
|
|
|
Ok. got it... if i 've any trouble i will ask you.
Thank you
|
|
|
|
|
I post this 2 questions on web development forum.............I thought if it might be the wrong place ..... so I just put it here ..... here are the questions
Can any body tell me how to send an email to some fixed email address(i.e to the owner of the site) just by collecting message and email address of the sender?
and the other question is
I am developing web page for some music production. What I wanted to ask is, there are a lot of links for a lot of lyrics. If I put the lyrics with their file name and when the user presses the link it reads the file and displays on a new page. But this is really bad(too slow). So I decided to do like CODEPROJECT's site did. i.e when we click one question(or answer) on a thread it display the message @ that page with in a fraction of mili second. So can any body help me how to do that so that I can display the lyrics next to the song as CodeProject's thread did?
I hope I will get some help soon. Thank you
|
|
|
|
|
Hey,
Sending an Email in PHP is rather simple. If you want a user to send an email, design and create a form with the appropriate fields (reply email address, email address subject, email address message/content). Then, when the form is submitted (I use post) you can apply validation and process the email (Regular expressions are useful for the email address, make sure you filter empty fields as well).
An email can then be sent like this:
$To = "webmaster@example-site.com";
$Headers = 'From:' . "<" . $frmEmail . ">" . "\r\n";
$Subject = 'Subject: '.$frmSubject;
$Message = 'Message: '.$frmMessage;
if(mail($To, $Subject, $Message, $Headers))
{
echo "Message Sent!";
}
else
{
echo "Error sending message!";
}
I suggest you use reCaptcha to guard your form (this system can be exploited easily). Also, you might want to pad the input using "\n" ...
I am not quite sure what you are requesting in regards to the music production system but a database driven website seems to be in order.
Regards,
- Calvin
http://www.calvinhartwell.com
|
|
|
|
|
Thankk you ma friend I will try it that ..... but how do i know it reaches to the person before posting the site? ... is there any mechanism to know that?
Thank you agian.
|
|
|
|
|
Hello everybody
I'm searching for a way to get information(name,author,...) out of a documeny(like docx,exc,zip,...)
Does anybody has an idea how i can accomplish this?
Greetz
|
|
|
|
|
|
How can i insert the current system date into MSSQL database using formview in asp.net
|
|
|
|
|
Artakazezs wrote: into MSSQL database using formview in asp.net
with PHP?
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
If you managed to find the PHP forum how the hell did you miss the ASP.NET forum? That makes absolutely no sense.
|
|
|
|