Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 78
Search took 0.02 seconds.
Search: Posts Made By: Ashleek007
Forum: Ajax June 3rd, 2007, 02:57 PM
Replies: 1
Views: 1,459
Posted By Ashleek007
Live Search?

Hi,

I'm looking for a tutorial or some help to figure out how to create a live search using AJAX and PHP.

Ive found this artice, which seems to be what im looking for......
Forum: JSP Basics May 22nd, 2007, 07:54 AM
Replies: 1
Views: 881
Posted By Ashleek007
validation problem

hi all,

I'm working on validating a username and password.... heres what I have so far.... i know the validation falls down when im trying to check the format of the password...


function...
Forum: Beginning PHP November 13th, 2006, 11:00 AM
Replies: 1
Views: 619
Posted By Ashleek007
preg_match

Hi,

I'm working on returning some results from a DB and only want to return the first 100 characters. I've gotten to this point, but it seems to have problems...

<?
$text =...
Forum: Beginning PHP September 27th, 2006, 06:35 AM
Replies: 2
Views: 5,223
Posted By Ashleek007
the answer to this i found on SiePoint...

the answer to this i found on SiePoint forum.......

<?
$olddate = "10/22/2006"; // Or any other valid date format
$newdate = date("l dS F Y", strtotime($olddate));
echo $newdate;
?>

This...
Forum: Beginning PHP September 27th, 2006, 06:31 AM
Replies: 2
Views: 5,223
Posted By Ashleek007
this board is .......d....e.....a.....d My...

this board is .......d....e.....a.....d

My new web design domain
www.askmultimedia.co.uk
Forum: Beginning PHP September 25th, 2006, 08:10 AM
Replies: 2
Views: 5,223
Posted By Ashleek007
mm/dd/yyyy to dd/mm/yyyy

Hi All,

This may be a pretty simple question but I've searched google and cant find the method to change a date fromat from mm/dd/yyyy to dd/mm/yyyy in PHP. I would like if I could also convert...
Forum: Beginning PHP March 12th, 2006, 02:56 PM
Replies: 3
Views: 1,450
Posted By Ashleek007
encrypting a php page

Hi,

I have a php file which i want to encrypt or protect so nobody can download the file from my server or read it if they do manage to get hold of it.

I know how to encrypt the file but need...
Forum: XSLT January 23rd, 2006, 08:27 AM
Replies: 0
Views: 1,692
Posted By Ashleek007
XML generation from PHP

Hey everyone, I've posted this cry fro help in PHP also, thought you guys mite be able to help? query might be a litlle more relevent to you?!?!

I'll describe the problem first of all.

Problem...
Forum: Beginning PHP January 23rd, 2006, 05:23 AM
Replies: 1
Views: 1,342
Posted By Ashleek007
generating XML through PHP

Hey everyone,

I'll describe the problem first of all.

[u]Problem</u>
I need to create an XML document containing variables taken from a MySql database passed through PHP 4.

I have the exact...
Forum: Beginning PHP July 17th, 2005, 02:09 PM
Replies: 1
Views: 1,048
Posted By Ashleek007
record display

$query = "SELECT * FROM FWnews";
$result = mysql_query($query);
$count = 0;

while($row1 = mysql_fetch_array($result,MYSQL_ASSOC))
{
$counter = $count++;
$newstitle.$counter =...
Forum: Beginning PHP July 15th, 2005, 11:08 AM
Replies: 0
Views: 1,085
Posted By Ashleek007
File upload problem!

Fatal error: Call to undefined function: do_upload() in /home/fhlinux196/a/askmultimedia.co.uk/user/htdocs/Failsworth/resourcesADD1.php on line 231

This is the function: -
function...
Forum: Beginning PHP April 25th, 2005, 07:22 AM
Replies: 2
Views: 719
Posted By Ashleek007
counting fields in DB?!

hi,

Ive got a table with a number of records in :-

username | time
----------------------
ash | 0.01
ash | 0.04
ash | 1.12
lee | 0.23
Forum: Beginning PHP April 19th, 2005, 10:42 AM
Replies: 6
Views: 765
Posted By Ashleek007
would it be like SELECT * FROM questions...

would it be like

SELECT * FROM questions WHERE value = '0'?

would this return all fields that contain a zero? like i said, there are 20 fields in the table and i only want the ones with 0 in...
Forum: Beginning PHP April 19th, 2005, 10:25 AM
Replies: 6
Views: 765
Posted By Ashleek007
hey, ive done it now, just compared the...

hey, ive done it now, just compared the timestamps and calculated the difference, it works, so im happy!lol


another little problem ive got,(sorry!) i want to select all items from a record in a...
Forum: Beginning PHP April 19th, 2005, 06:10 AM
Replies: 6
Views: 765
Posted By Ashleek007
ok, ive found that you can view the timestamp of...

ok, ive found that you can view the timestamp of a session using this:-

$start = time('subject');

which will set the variable $start to the initial timestamp.

What i need now is to kno how...
Forum: Beginning PHP April 19th, 2005, 06:00 AM
Replies: 6
Views: 765
Posted By Ashleek007
seeing how long session has been active?

ok, its me again!

Ive set a session variable called '$_SESSION['subject']' which is alive all the time a user is on a certain subject page.

I need to know how long this session is alive for, so...
Forum: Beginning PHP April 18th, 2005, 03:46 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
$i = 0; while($row1 =...

$i = 0;
while($row1 = mysql_fetch_array($result1,MYSQL_ASSOC))
{
$i++;
$values[$i] = $row1[TestScore];
$values[0] = 100;
}

there we go, that works, thanks again, and if i could help you...
Forum: Beginning PHP April 18th, 2005, 03:41 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
hey, thanks, it works now, it wasnt the code that...

hey, thanks, it works now, it wasnt the code that was the problem, it was my querystring $testID variable that was blank, in turn returning a blank SQL query!lol, fixed it now tho!

Oh, one more...
Forum: Beginning PHP April 18th, 2005, 03:31 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
lol, yeah its finally worked, it wasnt my...

lol,

yeah its finally worked, it wasnt my code that was wrong, it was the querystring at the top of the code, which was blank, because i hadnt passed the value accross sucessfully!

Only by...
Forum: Beginning PHP April 18th, 2005, 03:11 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
while($row1 =...

while($row1 = mysql_fetch_array($result1,MYSQL_ASSOC))
{
$values[] = $row1[TestScore];
}
print_r($values);

That shows me nothing! so im guessing the array is blank, do i need to create the...
Forum: Beginning PHP April 18th, 2005, 02:58 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
while($row1 =...

while($row1 = mysql_fetch_array($result1,MYSQL_ASSOC))
{
$values[] = $row1[TestScore];
}

i think it returns nothing, as i get an error message:-

Warning: Division by zero in...
Forum: Beginning PHP April 18th, 2005, 02:45 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
no mate, this could be the end of me!lol ...

no mate, this could be the end of me!lol

$username = $_SESSION['username'];
$testID = $HTTP_SERVER_VARS['QUERY_STRING'];
$query1 = "SELECT * FROM Results WHERE Username = '$username' AND TestID...
Forum: Beginning PHP April 18th, 2005, 10:33 AM
Replies: 21
Views: 2,089
Posted By Ashleek007
ok, this isnt working!lol What i want to do...

ok, this isnt working!lol

What i want to do is set the values in the array:-

$values = array("40","30","20","0","47","0","67","77","87","90","100");

to the values that are produced from this...
Forum: Beginning PHP April 17th, 2005, 05:52 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
$username = $_SESSION['username']; $testID =...

$username = $_SESSION['username'];
$testID = $HTTP_SERVER_VARS['QUERY_STRING'];
$query1 = "SELECT * FROM Results WHERE Username = '$username' AND TestID = '$testID' ORDER BY ResultsID DESC";...
Forum: Beginning PHP April 17th, 2005, 04:57 PM
Replies: 21
Views: 2,089
Posted By Ashleek007
setting each value from database as a variable

hey,

I have got a query which selects records from a database, i want to store each value the query produces in a separate variable, for example:-

the table has 10 values,...
Showing results 1 to 25 of 78

 


All times are GMT -4. The time now is 11:07 PM.


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