XML not opening data
So I've tried 6 different methods of pulling the data from the xml but each time I get nothing. I KNOW it's going to be something stupidly simple, but at the moment I'm stumpped. Here is the code I'm...
View Articlephp mysql question from a form
I have a form that people use to calculate their blood alcohol level. It currently does this with weight, sex and number of drinks. I want to add a multiplier that uses the type of drink to impact the...
View ArticleMy 'Foreach' SQL query build is not working
So, I am trying to build a SQL query dynamically from user input. The mysql_real_escape_string seems to be the problem. When I reun this I get the 'No fields entered' echo message. Can someone help me...
View ArticleAccessing central php file, different domains, same server
Ok so if anyone can help even a tiny bit, that would be awesome: I host for many clients and they all use a custom CMS that I created for their site so they can login and edit stuff. For many of...
View Articlecreating math pages
Thinking of creating a web site with maths questions on each page. Each page with 10 questions on different maths topics like multiplication or fractions. Making use of the rand () function alot. Also...
View ArticleWhy could not be able to update it!
hi, I tried to change update query from mysql to mysqli, at first under mysql is works great to update into mysql database but when i changed to mysqli is not doing update it. can anyone tell me what...
View ArticleINSERT code writing in my DB twice
I'm using the code below to insert data into my DB, but it's executing twice. Not as a duplicate, but with it's own unique line. How can I fix this? if($ft>0) { $ft="UPDATE sc_member SET...
View ArticleTitle, Artist, and Album Artwork in PHP
Hi I have an .mp3 file on my host that has a title, artist, and album artwork. How can I capture this in PHP so then I can go to my iPhone app and use what the PHP file captured? <?php...
View ArticleHow to group a list of years into a range?
I am using PHP and I have an array of vehicles, often with a range of years. I basically want to collapse the duplicate entries (where it's the same make/model/engine except for the year) and convert...
View ArticleError in vote of my site
Hello,I have a Web site or there is lags of has errors to create in a file and in particular the file "Voter" I you supplied the logs of errors with files concernedError log:...
View ArticlePHP Registration Page
Hi I am fairly new to using PHP and am struggling connecting the MYSQL database to PHP. It will work but when i enter dummy data into the form it won't update within the database. I have already got...
View ArticleNeed to understand about ajax calls for phpfile
hello I have a php file name abc.php . in that i call db connection file. in same file i want to call data from another php file. then i did following code $.ajax({ type: "GET", url:...
View ArticleCode Organization
Hey Guys. My current web application contains functions file that has about 56 user defined functions. As my application grew my developer kept adding new functions to the functions.php file with out...
View ArticleHow do I enable another page to open if checkbox is checked
I am designing a site where, if the student is under 19, they get transferred to the client page. Where am I going wrong as it's not working. Should I use a checkbox or a radiobox? Many thanks...
View Articlecron command not execute
Hello i create a cron job, every 5 minute push the script, with this command: lynx -source http://mydomain.com/public_html/xxxx.php and that script not execute.. i receive following email:...
View ArticleGetting variables FROM a cron help
Hi All, Right now I have a statistic on my home page that is gathered from querying the database. I would rather this statistic only be queried every hour or so instead of everytime someone lands...
View ArticleI need some help in some php codings
I am new to php codings. Need some help... Website: www.dailydose.com.my I would like to change this codings in my wordpress theme and use the adpress plugin for my ads but when i include the...
View ArticleLogon Page Issues.
I was trying to make a php logon page with root password only. I declared the contents of the logon page with the following contents config.php <?php define('hostname','localhost');...
View ArticleHeredoc variable
I have a php file that has this in it... //Make logChatInput.php $dataBase = "users"; $logChatInput = fopen($newDir."/logChatInput.php", "w"); $logChatInput_contents = <<<EOD <?php...
View ArticleCan't upload some files.
Hi, guys. I have some problems. I have an html code: <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport"...
View Article