Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 125
Search took 0.02 seconds.
Search: Posts Made By: UseLess
Forum: BOOK: Beginning PHP 5.3 September 24th, 2014, 07:11 AM
Replies: 2
Views: 2,462
Posted By UseLess
Greetings, The file that contains the...

Greetings,

The file that contains the 'checkLogin()' function is not being loaded.
Forum: Beginning PHP September 24th, 2014, 06:43 AM
Replies: 1
Views: 1,265
Posted By UseLess
Greetings, Here you go; <?php ...

Greetings,

Here you go;
<?php

$counter = 0;

if (isset($_POST['submit']))
{
$choice = ( isset($_POST['answer']) ? $_POST['answer'] : '');
Forum: PHP How-To September 24th, 2014, 03:35 AM
Replies: 1
Views: 8,241
Posted By UseLess
Greetings, One way to do it; while($row =...

Greetings,

One way to do it;
while($row = mysqli_fetch_array($selectresult))
{
// setup formatting
$bold = ( !$row['msg_read'] ? 'font-weight: bold;' : '');

// echo out the contents of...
Forum: PHP How-To September 23rd, 2014, 10:09 AM
Replies: 1
Views: 1,088
Posted By UseLess
Greetings, Replace this; if...

Greetings,

Replace this;
if (!isset($action)) {
$action = "";
}
with this;
// Setup array of limited actions
$actions = array('doupload', 'download', 'upload');
Forum: BOOK: Beginning PHP 5.3 September 23rd, 2014, 08:29 AM
Replies: 1
Views: 1,383
Posted By UseLess
Greetings, If you want to learn PHP then...

Greetings,

If you want to learn PHP then just go ahead and do it, your age has nothing at all to do with it.
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 September 23rd, 2014, 05:44 AM
Replies: 5
Views: 1,940
Posted By UseLess
Greetings, In 'delete.php' you DO NOT have...

Greetings,

In 'delete.php' you DO NOT have any code to handle the delete request. And the code to remove a person has the output line from the movie delete... your switch statement should be like...
Forum: PHP Databases August 20th, 2013, 08:43 AM
Replies: 1
Views: 1,628
Posted By UseLess
Greetings, Post the output of the following;...

Greetings,

Post the output of the following;
$sql = "Select * from callback where userid='$agent_id' order by callbacktime";
if( $result = mysql_query($sql) )
{
// array to hold data;
$data...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 July 12th, 2013, 07:00 AM
Replies: 3
Views: 2,581
Posted By UseLess
Greetings, Did you call the file 'page.php'...

Greetings,

Did you call the file 'page.php' ?

If not then you'll have to alter the page that's called here;
<a href="page.php?offset=0">Page 1</a>
change page.php to whatever you called the...
Forum: Beginning PHP June 12th, 2013, 02:32 AM
Replies: 8
Views: 2,243
Posted By UseLess
Greetings, And we would know you've used the...

Greetings,

And we would know you've used the wrong datatype how?

And you alter the function like this;
function makeAgo($timestamp)
{
$now = time();

if( $now > $timestamp )
Forum: Beginning PHP June 11th, 2013, 06:45 AM
Replies: 8
Views: 2,243
Posted By UseLess
Greetings, Change the function to test the...

Greetings,

Change the function to test the timestamp to see if it's greater than the current time if it is take the timestamp away from the current time and set a string to be 'ago' <else> take...
Forum: Beginning PHP June 11th, 2013, 04:43 AM
Replies: 8
Views: 2,243
Posted By UseLess
Greetings, No it's not the same error. ...

Greetings,

No it's not the same error.

You're getting a negative value because the date/time is in the future.

For example using:
2013-06-11 10:10:33
on the 11-06-2013 at 09:38 results in:...
Forum: Beginning PHP June 11th, 2013, 03:24 AM
Replies: 8
Views: 2,243
Posted By UseLess
Greetings, Fixed: <?php class...

Greetings,

Fixed:
<?php

class convertToAgo
{

function convert_datetime($str)
{
Forum: Beginning PHP May 7th, 2013, 11:05 AM
Replies: 5
Views: 948
Posted By UseLess
Greetings, Try running this; <?php ...

Greetings,

Try running this;
<?php

phpinfo();

?>
and if that does not work then you will need to check your apache configuration.
Forum: Beginning PHP May 3rd, 2013, 03:12 AM
Replies: 5
Views: 948
Posted By UseLess
Greetings, You have an extra "</td>"; in...

Greetings,

You have an extra "</td>"; in there and you are missing the closing } for the while loop.
Forum: BOOK: Professional PHP6 April 25th, 2013, 09:15 AM
Replies: 3
Views: 1,802
Posted By UseLess
Greetings, Correct. The above "should" be...

Greetings,

Correct. The above "should" be like this;
eval('$actualVal = &$this->' . $value . ';');

if (isset($actualVal) || ($actualVal == NULL)) {

if ((is_int($actualVal)) ||...
Forum: BOOK: PHP and MySQL 24-Hour Trainer April 18th, 2013, 08:48 AM
Replies: 3
Views: 1,240
Posted By UseLess
Greetings, Ok I think the above is a little...

Greetings,

Ok I think the above is a little confusing... so.

$_GET and $_POST are used to obtain information passed to a webpage.

How this information is passed determines which one you use....
Forum: BOOK: PHP and MySQL 24-Hour Trainer April 17th, 2013, 05:31 AM
Replies: 3
Views: 1,240
Posted By UseLess
Greetings, The error is due to the GET array...

Greetings,

The error is due to the GET array not having an index of 'contactForm'. And if you are using a form then the usual method of getting data from a form is via the POST array.

Try...
Forum: MySQL November 21st, 2012, 12:46 PM
Replies: 1
Views: 1,500
Posted By UseLess
Greetings, It means that on this line; if...

Greetings,

It means that on this line;
if (cmpfx($rs["user_name"], $_POST["username"]) && cmpfx($rs["password"], md5($_POST["password"]))) {
you're calling the function 'cmpfx' which has not...
Forum: BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 October 24th, 2012, 10:47 AM
Replies: 4
Views: 1,731
Posted By UseLess
Greetings, You have a . instead of a ; at...

Greetings,

You have a . instead of a ; at the end of the query to grab the directors name.
Forum: BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 October 24th, 2012, 04:24 AM
Replies: 4
Views: 1,731
Posted By UseLess
Greetings, In the 2 functions you setup a...

Greetings,

In the 2 functions you setup a query but do not execute it, so the function 'get_leadactor' should be like this;
//function to get lead actor
function get_leadactor($lead_actor)
{...
Forum: BOOK: PHP and MySQL 24-Hour Trainer October 23rd, 2012, 02:58 AM
Replies: 2
Views: 995
Posted By UseLess
Greetings, Unless you have a class called...

Greetings,

Unless you have a class called 'mysqli' with a property of 'connect_error' then the code you provided above is meaningless. Try removing the @ before the new and see what error you get.
Forum: Beginning PHP October 8th, 2012, 03:59 AM
Replies: 1
Views: 848
Posted By UseLess
Greetings, This; $result =...

Greetings,

This;
$result = mysql_query($dbc,$query)
or die('Error querying database');
should be;
$result = mysql_query($query,$dbc)
or die('Error querying database');
because like the error...
Forum: BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 September 19th, 2012, 03:53 AM
Replies: 1
Views: 1,830
Posted By UseLess
Greetings, What mysql script would that be,...

Greetings,

What mysql script would that be, as in my copy of the book there is no mysql script to run in chapter 6 as the database was built in the previous chapters. Chapter 6 deals with...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 September 11th, 2012, 07:13 AM
Replies: 6
Views: 1,217
Posted By UseLess
Greetings, You're missing the point in the...

Greetings,

You're missing the point in the topic I mentioned above the OP says this;


so he's using the class method 'where' to generate the WHERE clause BUT it's wrapping the != in back...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 September 10th, 2012, 06:13 AM
Replies: 6
Views: 1,217
Posted By UseLess
Greetings, See here:...

Greetings,



See here: http://p2p.wrox.com/book-professional-codeigniter-isbn-978-0-470-28245-8/88350-getting-error-message-while-trying-checking-field-using-operators-active-field.html
Showing results 1 to 25 of 125

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.