Search Results

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: psycho007 ; Forum: PHP and child forums
Forum: PHP Nov 7th, 2008
Replies: 4
Views: 1,185
Posted By psycho007
if i put an exit(); inbetween the two }} at the end it seems to insert the firstline of the array into the table orders_complete. I think what its doing is everytime the while loop cycles its...
Forum: PHP Nov 7th, 2008
Replies: 4
Views: 1,185
Posted By psycho007
hi again

unfortunitly using the mysql_fetch_assoc didnt resolve the issue. when viewing the row changed by the update query only inserted the last row of the select item,cost from orders_total...
Forum: PHP Nov 7th, 2008
Replies: 4
Views: 1,185
Posted By psycho007
thanks for that,

I will impliment that as soon as I can and let you know how I get on. As Im a new PHP programmer im not too sure what the difference is between the mysql_fetch_array and the...
Forum: PHP Nov 6th, 2008
Replies: 8
Views: 954
Posted By psycho007
each row entry for total_orders needs to be added to 1 field entry in table orders_complete colum ord_descr
Forum: PHP Nov 6th, 2008
Replies: 8
Views: 954
Posted By psycho007
oh right ok. well i am in the middle of designing a web based internal ordering system for a local pizza delivery company. basically the orders_complete table holds all processed information about...
Forum: PHP Nov 6th, 2008
Replies: 8
Views: 954
Posted By psycho007
Sure as requested

ORDER_TOTAL Table layout
create table order_total (
ord_id int not null auto_increment,
PRIMARY KEY(ord_id),
item varchar(255),
cost float(6,2));

ORDERS_COMPLETE TABLE
Forum: PHP Nov 6th, 2008
Replies: 8
Views: 954
Posted By psycho007
all what happens is that the last piece of information is entering into the orders_complete table i.e. half pound burger £3.40 and not the full information from the select * from total_orders table
Forum: PHP Nov 6th, 2008
Replies: 8
Views: 954
Posted By psycho007
i have changed the above code to the following:


include("config.php");

$result7 = mysql_query("SELECT * from order_total");
while($row = mysql_fetch_array($result7))
{
$test =...
Forum: PHP Nov 6th, 2008
Replies: 4
Views: 1,185
Posted By psycho007
Hi All

I was wondering if somebody could help me as this is driving me crazy.

I am trying to send an array from a mysql_fetch_array result to a seporate table. I have the following code:


...
Forum: PHP Nov 6th, 2008
Replies: 8
Views: 954
Posted By psycho007
cut a long story short I have 2 tables, one called orders_total and another called orders_complete.

the total_oders table contains rows of what the customer has ordered to eat i.e.

colum called...
Forum: PHP Nov 6th, 2008
Replies: 3
Views: 775
Posted By psycho007
if i remember re calling this. I believe if you do not specify a file location for the file to be uploaded i believe it uses a default temporary location within the php.ini file.

take a look at...
Forum: PHP Nov 6th, 2008
Replies: 9
Views: 457
Posted By psycho007
try the case statement, this would make things alot easier to code and to read.

Regards
Forum: PHP Nov 2nd, 2008
Replies: 0
Views: 721
Posted By psycho007
Hi
Does anybody know if there is away for php to open a port i.e. com1 which is connected to the modem and pole for a incoming call? idealy I would like php to display CID (caller ID) from incoming...
Forum: PHP Nov 2nd, 2008
Replies: 11
Views: 2,533
Posted By psycho007
hi all

having spent a large amount of time studing the ways to print using php I have finaly figured out the best solution. I have decided NOT to use the text file, but to print directly from a...
Forum: PHP Oct 30th, 2008
Replies: 15
Views: 43,484
Posted By psycho007
you can print directly to a printer held on the clients machine. the php_printer.dll is needed which can be found in the PECL downloads.

once you have downloaded and copyed the php_printer.dll...
Forum: PHP Oct 30th, 2008
Replies: 11
Views: 2,533
Posted By psycho007
changing the print function to RAW data seems to slow the printing speed
setting the printer function to TEXT seems to increase the speed
Forum: PHP Oct 30th, 2008
Replies: 11
Views: 2,533
Posted By psycho007
sorry i forgot to mension that in my last comment any lines displaying : are not shown in the output to screen
Forum: PHP Oct 30th, 2008
Replies: 11
Views: 2,533
Posted By psycho007
Thank you very much for your help so far :o)

ok i have completed the other test too.

It looks like that the printer_write($handle, "Text \n\rTo print"); did write 2 seporate lines. without...
Forum: PHP Oct 30th, 2008
Replies: 11
Views: 2,533
Posted By psycho007
Hi
I have tryed

printer_write($handle, "Line 1");
printer_write($handle, "Line 2");

This seems to print 2 seperate pages
line 1 is one page
line 2 is the other page
Forum: PHP Oct 29th, 2008
Replies: 11
Views: 2,533
Posted By psycho007
i am using:
$file = 'receipt.txt';
$handle = printer_open('HP LaserJet 4000 Series PCL6');
printer_set_option($handle, PRINTER_SCALE, 75);
printer_start_doc($handle, "My Document");...
Forum: PHP Oct 28th, 2008
Replies: 11
Views: 2,533
Posted By psycho007
Hi there, was wondering if somebody could help me.
I currently have a project to create a php/mysql system for a local pizza company, a touch screen system. Cut a long story short, I need to be...
Showing results 1 to 21 of 21

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC