Displaying information from database onto website
So, I'm trying to display information from a table into my database on one of my pages. However, everything I've tried isn't working. Obviously, it's me. I know I'm doing something wrong, just not sure...
View ArticleProblem with Josn Data
I have recived a set of dat from an android device using Json. I have decoded this data into a PHP array. I took each value of the array usinf foreach and placed in a MySQL statement. But its not...
View ArticleSelection field
Hi all, I've a problem with my PHP code. I've a page, where you can select multiple pages, which will be displayed at the related section on my site. So far, you can select the pages, and they will...
View ArticleLocal Variables in PHP
Grateful for some help in using local variables. I am coding a page for my club's monthly photographic competition. There will be a table of winners (1st, 2nd, 3rd, HC) for each month, so I will have...
View Articledisplay linkedin details in my text fields using php
i have managed to connect with Linkedin APi, so i can get the users details using below code. $response =...
View ArticleThe right place to declare class properties
Hi Guys I was trying to set a class property today in the same way I have for a long time but it didn't work and it made me wonder whether I have been doing something wrong for a while. When i try...
View ArticlePHP AJAX SQL update not working after adding extra record
Not sure how to go about this task but I imagine it requires some sort of foreach loop I have a drop down list populated by a label called LST_Type, this table only exists to provide options for this...
View ArticlePHP Count words and stop swear words
Hi guys, Thanks a lot for the help so far with my college work. I appreciate that. Sorry I am stuck on the following script and need a bit of help. I want users to be able to enter details inside input...
View ArticlePING tool for website
Hi I am looking for help on how to write a free simple php code with form that would allow users to enter either IP address or domain name and click on a PING button and the result displays either...
View ArticlePotential Output Buffering Issue
I think I have an output buffering issue, but I don't understand it because in my php.ini file I have outbuffering = On . [05/08/2013 11:16:01] E_WARNING: Cannot modify header information - headers...
View Articletinymce span style color not working
hi all I m using tinymce for adding content to my website. also i m using $detail = mysql_real_escape_string('$detail'); When ever i select text and change its colour, tinymce add <span>...
View Article1 login form 3 different types of user
Hi I am trying to set up a Recruitment site and on the home page I have a login form that I have got working fine, my question to see if this is possible:- Can the one login form direct me to he...
View ArticleCustom 404 page showing up in Google search
Hey, I created a custom 404.php page and have the following code in the .htaccess to direct any non-existent pages to the custom 4040 page, ErrorDocument 404 http://www.website.com/404.php So it...
View Articlei am making code for online exam...and if i submit then its not count the...
<?php include("connection.php"); $display = mysql_query("SELECT * FROM quiz ORDER BY qid"); if (!$_POST['submit']) { echo "<form method=post action=$PHP_SELF>"; echo "<table...
View ArticleSending mail
Hey guys, I've run into a problem on my website. I need to send two emails when a form is processed. One is to me, one is to the person submitting the form. I've been using mail() but its performance...
View ArticleSimple form help needed!
Hi, I'm struggling to solve what seems to be potentially quite a simple problem with my form! It's for a really basic web-based racing game, and basically the issue is that in the form, the option...
View ArticleopeningHoursSpecification and dayOfWeek
Hey, I'm using the Google structured data markup helper right now and trying to give structured data to the hours of operations listed on the home page. However, it shows this error, <meta...
View Articleswitching to mysqli_prepared statements
I want to switch to mysqli_prepared statements but have a question before I start. example 1 $query = $mysqli->prepare('SELECT * FROM users WHERE username = ?'); $query->bind_param('s',...
View ArticleGrabbing all and sending as one
Evening all, I'm trying to get a script then will run on a CRON job at some point. it works as you see it, however when more than one server is down it sends a new email for every server, how would i...
View Articlebind_result
What am I doing wrong in the code below? $qry1 = $db->prepare("SELECT id FROM user WHERE username = ? AND password = ?"); $qry1->bind_param('ss', $_GET['username'], sha1($_GET['password']));...
View Article