It worked.
Thanks Boys;)
Type: Posts; User: I am Abby; Keyword(s):
It worked.
Thanks Boys;)
<snip>
list($year, $month, $day) = split('[/.-]', $row['dt']);
$month = $monthnames[$month];
echo "<p><strong>{$month} {$day}, {$year}</strong><br />".
"Decription:...
one of my friends said because the urls in the source code has slashes
<a href=\"http://page.com\">link</a>
I should do a remove slashes...so I tried
// Make a MySQL Connection...
It looks correct in the database.
Well thanks for your time anyway:)
Here is the complete code for the test page. Only thing I changed was the mysql_connect information...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
Wow, I was sick, sick, sick this weekend but I'm better now...don't you just hate getting sick on the weekend!
The source code looks like this...doesn't this look right?
<body>...
Not sure what do you mean "view it as source code"
When I look into the database at the record, the description field has "Another item to test <a href=\"http://uiuc.edu\">U of I</a>" in it.
...
Array ( [id] => 4 [calendar_id] => 1 [dt] => 2010-08-20 => ffff00 [description] => test of events to be printed on page. tiis is iit [COLOR="Red"]KCM )
The above is what I get from the script...
Your script gave me an array...the same thing I was getting with the field names.
I looked at the fields in the database and the urls are stored like this
<a href=\"http://page.com\">link</a>
<?php
// Retrieve all the data from the "webcalendar_events" table
$result = mysql_query("SELECT * FROM webcalendar_events )
or die(mysql_error());
echo
"Decription:...
{
list($year, $month, $day) = split('[/.-]', $row['dt']);
$month = date(M);
echo "<p><strong>{$month} {$day}, {$year}</strong><br />".
"Decription: {$row['description']}</p>";
}
This code...
How could I mis that?
thanks.
// Retrieve all the data from the "webcalendar_events" table
$result = mysql_query("SELECT * FROM webcalendar_events WHERE dt >= now() AND color='ffff00' ORDER BY dt")
or die(mysql_error());
...
The date in my database looks like 2010-08-18
I want to format the date to make it look like August 18, 2010
$result = mysql_query("SELECT * FROM webcalendar_events WHERE dt >= now() ORDER BY...
how would you excape them after loading the xml?
If for some reason a " " gets into my xml document (from me accidently hitting the space bar twice or something), when I load the xml onto my web page I get an error that the parser does not...
I'm getting closer...
What I have gives me the 5 most recent posts.
//read from bev.xml
$file = 'xml/bev.xml';
$xml = simplexml_load_file($file);
$limit = 5;
$page = $_GET['page'];
I found a script that looks fairly easy to implement...I just have two problems with it.
<?php
$xml = simplexml_load_file('yourxml.xml');
$limit = 5;
$page = $_GET['page'];
foreach (...
If anyone's following this thread because they too want to know how to do this...here's the solution...or a solution
<?php
//write from bev.xml
$file = 'xml/bev.xml';
$xml =...
Ok, I just can't get this into my head.
$mydate = date("F j, Y)
will give you May 28, 2010
The following gives me an error
if I remove the line "$mydate = $vdate("F j, Y"); " it works but with...
That's much easier but now I've a new problem.
The following code gives me the date the way I want to see it but I only get the date from the first record in my .xml and the message in the last...
using php and javascript
I'm wanting to turn short dates in my .xml files into long dates
5/28/10 = May 28, 2010
first the working javascript I found that formats today
<script...
What about this site? If you spell "butiful" when replying to this message do you see a red line under it and are you able to right click to see and able to change it to "beautiful"?
Does the...
Using my mac I found what looks like a great one. http://www.broken-notebook.com/spell_checker/
The intentionally misspell dictionary. On my Mac it is underlined with red, if I right click I can...
Funny thing I just went over to my PC to test the spell check here! Same thing happens if I make a spelling mistake using my mac it's underlined with red and I can correct it by right clicking.
...