No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
as seen in the pic a table. I have the following im trying to fill the boxes based on rows. So line one will fill by the correct ordergoing left to right then down. here is my code. $results = mysqli_query($con, " SELECT * FROM PMAsset Order by Linenum, LineOrder") … | |
Having a issue with coldfusion. I just need a simple way to see if a date has passed and if so to update a field in a database. basically I have events showing on a page but want to remove the event automactically when it is over. Thanks for the … ![]() | |
Ok here is the code. ` mysql_query("UPDATE `special` SET `Counter` = `Counter` - 1"); $Counter = mysql_query("SELECT Counter FROM special where Id = 1"); if($Counter == 0) { echo "<meta http-equiv=\"refresh\" content=\"0;URL=winner.php\">"; mysql_query("UPDATE `special` SET `Counter` = `Counter` + 500"); } else { echo "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">"; } ?> im … ![]() | |
I am trying to write a email address to a file. the user enters there email addy and submits which brings them to the following code. however im unable to figureout what im doing wrong to write to the file. any ideas? $myfile = file("data/mylist.lst"); $fh = fopen("data/mylist.lst","w"); for ($index=0; … | |
Here is a tricky one that im having issues with... I have a page called events.php that has a include to query sql and pull events from the database after todays date and include the artist information from a include file. here is the code. The events page has a … | |
Im having a issue with comparing dates below is the code. it shows all rows even dates that have passed todays date. The Date field is set as date in sql. <?php $con = mysql_connect("localhost","myusername","mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $todays_date = date("Y-m-d"); … ![]() | |
I have a php file with the following code and i am trying to not display information after todays date. my incl_frontpageschedule.inc is listed below as well. im new to php and think i am close but confused at the moment any help would be great. <?php $today = date("F … ![]() |
The End.