Validating my form
I'm trying to complete an assignment that has to validate my form when the user presses the submit button. If you go to this website you can see the form that the user has to fill out:...
View ArticleDisplay message output in multiple columns
I wrote the following code to display messages from the database. Currently it produces a long list, I'm trying to figure out how to break this list up into two columns to shorten the length of the...
View ArticleInserting Dates
I am using the jQuery code to insert a US format date format into a table.However I have two frustrating problems. Firstly I can only insert the value as text so I cant use it to calcualte with. I have...
View Articlemysqli update using placeholders
The below updates records for the month of jan, feb, mar ect although I'm expecting only records that have the month of feb to be updated. Is my update syntax wrong somhow? Also how can I echo the...
View ArticleConvert this code into php class
I'm very new at php and need help converting this random name generator code into a php class. This is the current php code: <?php$vowels = array("a", "e", "o", "u");$consonants = array("b", "c",...
View Articleim having trouble getting
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
View Articlehaving trouble getting this code to work
I’m new to Dreamweaver CS4 and I’m working though a training source book, I’m currently trying to pass data between pages I have created the first name page and it displays the error message “...
View Articlebest way to santize html editor POST
So if you submit a form, that contains an htmleditor, but you want to sanitize the code, how is this done? Obviously htmlentities will render any html in the editor unusable.
View ArticleBirthdays Last Week and This Week
I have a column (DATE) for bithdays...how can I select in MYSQL which birthdays were last week...and the upcoming week? I found this...but it's only for the upcoming week...not last week too......
View ArticleObject-Oriented Programming Clarification?
I think I'm starting to wrap my mind around how to work with OOP - Objects and Arrays I have starting a small test php file that I'm doing testing on. Here's my main file <?php...
View ArticleContact Us Form Help
I created a contact us form that sends me an e-mail with the person information. The form page name is contact_us.php and it post to mail.php which is working good so I thought. But lately I've been...
View ArticleSELECT TOP equivalent in MySQL
Can someone tell me if this is right? $r2=query_wrapper("SELECT * FROM tblphotos WHERE tblph_shareID = ?",$rstDBEdit["share_ID"]). " ORDER BY tblph_shareID DESC LIMIT 1"; I'm getting the following...
View Articlephp edit code error
Hi, I am getting error Notice: Undefined index: TeacherID in C:\xampp\htdocs\basic\edit.php on line 54 Error! id teacacher try to fix but didn't work please help <?php /*?><?php $id =...
View ArticlePaginating criteria-based search results
Hi, This will be my first time to use a criteria-based search with pagination togather. I want to paginat my search query results and be able to go to next and previous pages of my search results...
View ArticleHelp a beginner with MSQL connection issues
Hi guys, Im new to coding, learning fast! I have built a simple social networking website and im trying to implement a chat system on my site.. im using this resource. http://old.ajaxim.com/ Im...
View ArticleGo beyond Twitter API Limits
Is there is any Unofficial twitter API that goes beyond Twitter API Limits ? I've seen some site "Service" Provide such data that no way you can get with Official Twitter API Which makes me think they...
View Article"const" declaration error
hi Guys, I'm trying to get google analytics api libraries to work, I encounter an error that I think has something to do with my server setup - PHP Parse error: syntax error, unexpected T_CONST in...
View ArticleProbably something stupid...
hello! I have a page which uses some code from dot mailer.co.uk to add a users data into their address book, once that has been done I would like the page to redirect to a thank you page. Problem...
View ArticleCompare Arrays
Hi, I'm trying to compare arrays but they have different levels of keys Array 1 array (size=1) 'fdate' => string '2013-04-14' (length=10)array (size=1) 'fdate' => string '2013-04-21'...
View Articlehow to integrate paypal using paypal class file
i have used paypal class file which somebody says its not safe to use this class file in payment sites. please advise on this. i have doubts regarding the paypal ipn and i have 2 files 1)...
View Article