Click here to Skip to main content
15,881,089 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: multiform post data using http thingies Pin
cjoki23-Dec-10 4:48
cjoki23-Dec-10 4:48 
QuestionConverting CGM to PDF (A4 only) Pin
pfsWrite21-Dec-10 20:47
pfsWrite21-Dec-10 20:47 
QuestionSQL to multidimenisonal array [modified] Pin
MacRaider420-Dec-10 8:10
MacRaider420-Dec-10 8:10 
AnswerRe: SQL to multidimenisonal array [modified] Pin
Luc Pattyn20-Dec-10 8:35
sitebuilderLuc Pattyn20-Dec-10 8:35 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider420-Dec-10 8:43
MacRaider420-Dec-10 8:43 
GeneralRe: SQL to multidimenisonal array [modified] Pin
MacRaider420-Dec-10 9:29
MacRaider420-Dec-10 9:29 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn20-Dec-10 10:25
sitebuilderLuc Pattyn20-Dec-10 10:25 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider420-Dec-10 14:46
MacRaider420-Dec-10 14:46 
Still new to PHP so kinda learning as I go. That section of code is creating a calendar "table" on the page. So what I have it doing is as it creates the cell for the date looking to see if anything is "happening" on that day. Being new to web programming I don't know of a better way to do it. If I were to do this in VB or C# it wouldn't be a big deal but running into some issues (obviously) with doing this in PHP. That is why I originally asked about putting this into an Array, this way I could just look to see if that value was in the array in slot what ever and go onto the next. The actual call for the query is in another function, I just passed the variable to this function like I normally would.
$con = mysql_connect($hostname, $username, $password) 
	or die("Unable to connect to mySQL");
echo "Connected to mySQL";
echo "<br /><br />";
$selected = mysql_select_db("intranet",$con) 
	or die("Could not select intranet");

$result = mysql_query("SELECT name, bdayMonth, bdayDay FROM employee WHERE bdayMonth='$currentMonth'");

Not sure if that really helps that much, but figured I'd show what I've got.
That should as mentioned before return something along the lines of:
---------------------------------
| name | bdayMonth | bdayDay |
---------------------------------
|Jon Doe | 12 | 9 |
---------------------------------
|Jane Doe | 12 | 22 |
---------------------------------
normally I'd do a simple loop of for each row in array what ever where bdayDay equals currentDay or something along those lines... Then when you find one some sort of print statement like "array(x,0) Birthday!" or is it array[x][0]?
Enjoying this new challenge, just not the headache Laugh | :laugh:
AnswerRe: SQL to multidimenisonal array Pin
Luc Pattyn20-Dec-10 14:59
sitebuilderLuc Pattyn20-Dec-10 14:59 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 2:06
MacRaider421-Dec-10 2:06 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 7:35
MacRaider421-Dec-10 7:35 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn21-Dec-10 8:02
sitebuilderLuc Pattyn21-Dec-10 8:02 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 10:01
MacRaider421-Dec-10 10:01 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn21-Dec-10 10:09
sitebuilderLuc Pattyn21-Dec-10 10:09 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider421-Dec-10 14:12
MacRaider421-Dec-10 14:12 
AnswerRe: SQL to multidimenisonal array Pin
schwarzenneger21-Dec-10 18:48
schwarzenneger21-Dec-10 18:48 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider422-Dec-10 1:40
MacRaider422-Dec-10 1:40 
GeneralRe: SQL to multidimenisonal array Pin
cjoki22-Dec-10 5:24
cjoki22-Dec-10 5:24 
AnswerRe: SQL to multidimenisonal array Pin
cjoki22-Dec-10 5:21
cjoki22-Dec-10 5:21 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider422-Dec-10 6:02
MacRaider422-Dec-10 6:02 
GeneralRe: SQL to multidimenisonal array Pin
cjoki22-Dec-10 6:47
cjoki22-Dec-10 6:47 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider422-Dec-10 8:06
MacRaider422-Dec-10 8:06 
Questionwireless internet not running on vmware Pin
AmbiguousName20-Dec-10 6:32
AmbiguousName20-Dec-10 6:32 
AnswerRe: wireless internet not running on vmware Pin
LloydA11120-Dec-10 6:44
LloydA11120-Dec-10 6:44 
Questionhow to measure TCP congestion windows using python ?? Pin
peaceziz19-Dec-10 0:02
peaceziz19-Dec-10 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.