Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Need Help With Php


  • Please log in to reply
3 replies to this topic

#1 kracker1407

kracker1407

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:17 PM

Posted 15 September 2008 - 02:45 PM

hello..
im using the php language..
i want to make 1 application..
user will insert date and month to get a horoscope value..

how i want to create that program..
just a get horoscope result..

help me please!! huh.gif


example:

month=4/april
date=12

the result is = Aries

Edited by garmanma, 15 September 2008 - 05:39 PM.
split from another post


BC AdBot (Login to Remove)

 


#2 Wolfy87

Wolfy87

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:04:17 AM

Posted 15 September 2008 - 03:00 PM

K then dosent sound to complicated ile come back to you on it coz i hav to come of now but ile see what i can do, bare in mind i am laerning C# so i wont be able to help you with the code in php but this could easyly be done in C#, just specifi your parameters to me eg back ground and text color and font.

Edited by Wolfy87, 15 September 2008 - 04:12 PM.


#3 kracker1407

kracker1407
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:12:17 PM

Posted 17 September 2008 - 12:39 PM

this is piece of coding :
i think it contain error..

switch($month)
{
	case 3:
	{
		if (($date>=21)&&($date<=31)
			echo "Aries";
	}
	case 4:
	{
		if (($date>=1)&&($date<=19))
			echo "Aries";
	}
	case 4:
	{
		if (($date>=20)&&($date<=30))
			echo "Taurus";
	}
	case 5:
	{
		if (($date>=1)&&($date<=20))
			echo "Taurus";
	}
}


#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:10:17 PM

Posted 17 September 2008 - 01:35 PM

i wont be able to help you with the code in php but this could easyly be done in C#


So in other words, you won't be any help at all.... :thumbsup: Why waste someone's time? How would you like it if I said "I don't know C#, but I can do it in Perl?" Would that be at all helpful to you? Not at all, unless you were really interested in learning Perl.....

kracker1407, as far as that bit of code is concerned, the parameter that is being passed into the function is called $month, yet you don't use it anywhere within your switch statement. You have two of case 4, and no case one or two. What sort of error is it causing?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users