Welcome! Log In Create A New Profile

Advanced

Task 6A-2

Posted by DotKhoza 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar Task 6A-2
May 01, 2007 12:12PM
Done. No issues here. Just interesting stuff...

A Successful Nature Inspires Other People...
Re: Task 6A-2
May 01, 2007 05:55PM
Completed, no problems!
Re: Task 6A-2
May 08, 2007 09:17PM
Task Completedhot smiley
Re: Task 6A-2
May 09, 2007 03:23PM
I got this because bookstore_db does not exist. Do we have to create this database ourselves or does it exist somwehere as a script?

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\www\StudentPHP\connect.php on line 20
Re: Task 6A-2
May 09, 2007 04:23PM
Task completed successfully after having found bookstore_db files on the course CD's.

I created a seperate file for connecting to the database, i.e. one without headers and footers and then did an include in the script instead of re-writing the connect functions

<?php
$title = "Display Records";
include ("header.php"winking smiley;

//$link_id = mysql_connect();
include ("connecttodb.php"winking smiley;

mysql_select_db("bookstore_db"winking smiley;
Re: Task 6A-2
May 09, 2007 07:37PM
Done successfully.
Re: Task 6A-2
May 11, 2007 04:12PM
Done yay! Good call, Mackgray.
Re: Task 6A-2
May 13, 2007 08:03PM
Done

Nino
WjS
Re: Task 6A-2
May 15, 2007 09:26AM
Finished.
had some troubles though.
I had to make a calculator for the one site im working on and had to setup a db for the values.
But i couldnt get the values from the db to diplay. it only worked when i used the foreach() statement.


$query = "SELECT $brick FROM area WHERE area = '$place'";
$results=mysql_query($query)
or die (print "Please Select all the fields<br><a href=temp_trans_calc.html>back</a>"winking smiley;



while ($row=mysql_fetch_row($results)){
foreach ($row as $field);
WjS
Re: Task 6A-2
May 15, 2007 09:27AM
done
Re: Task 6A-2
May 17, 2007 08:48PM
Completed.
Re: Task 6A-2
May 19, 2007 09:02PM
All Good
Re: Task 6A-2
May 29, 2007 09:38PM
Done
Re: Task 6A-2
June 01, 2007 03:31PM
Completed
Sorry, only registered users may post in this forum.

Click here to login