![]() |
|
#1
|
|||
|
|||
arrayI have found a small calander script that suits my site but I am trying to modify it slightly and have hit a problem.
The calander displays great but there is an array at the bottom that allows you to add certain dates to generate a link. PHP Code:
ie If my database has a match for the dates 2 and 3 then the code would be PHP Code:
PHP Code:
I have tried looking at all the manuals etc but just cant work it out. |
|||
|
#2
|
|||
|
|||
Solved and working. Finally got a little calander that pulls 'post dates' from 3 different tables and highlights the days where something has news, report or event. Feeling rather proud of myself |
|
#3
|
||||
|
||||
|
Now I know why you call yourself "misunderstood" - I still don't know what you were trying to ask when you started this thread.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
||||
|
||||
|
I *think* he's trying to get PHP code for setting variables to be put into a variable called $MY_LINES_HERE, and run it. If so, this won't work.
|
|
#5
|
|||
|
|||
|
Quote:
What, you dont use ESP and mind reading! ;-) Quote:
Quick explaination (clearer explaination) I had a line in a script that contained something similar to: PHP Code:
The arrays contained in the array $days worked when the line was physically typed. What I wanted to do was build the arrays contained in the $days array from a database containing none matching tables. The number 2 and 3 in the example had to be replaced with the day and the month with the month and the year with the year extracted from the tables dates column. the last section is common text. Clear as mud eh! Anyway with a little help from someone who was as confused as you are all now I got it working so the arrays were formed from the data extracted from the tables dates columns (all dates columns named differently) and placed into the $days array. And all without blowing up my computer! Sorry I have confused you all even more. |
|
#6
|
||||
|
||||
|
Ah.. I see what you were asking now. But, even now, I can't suggest anything because anyone attempting to help you with this, will need to see the structure of the MySQL table which should have been already described in your message when you started this thread.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| more array help (simulation project..) | dilmv | C++ Forum | 6 | 17-Oct-2004 07:51 |
| Speed up C++ code about 3d array! | Truong Son | C++ Forum | 0 | 16-Mar-2004 21:52 |
| c: array comparison | jack | C Programming Language | 7 | 26-Jan-2004 11:21 |
| Extra null element in an array | samtediou | MySQL / PHP Forum | 2 | 11-Dec-2003 11:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The