For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > May 2005 > how to show & print barcode script tabel?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to show & print barcode script tabel?
GF

2005-05-01, 9:00 pm

Hello all,

I'm building a system with php/mysql

And I'm using the barcode script from http://www.ashberg.de/bar

The system works as follows:
1. insert the number of products $prod_count
2. for loop generate barcode sring * $prod_count
3. save barcode string in the mysql db

I want to select the barcode strings from mysql and
print an dynamic html table with the barcode_images used from
http://www.ashberg.de/bar

-The barcodeprint page must fit on an A4 format
-Print option
-dynamic (so if I select just 4 barcode strings it'll print only that count
of barcode_image)

How do I create an dynamic table and input the barcode string,
through the barcode script into the table that will generate the image?

And I was wondering is the best way to do this OO-oriented?

Is there is anyone familair with some kind of problem please let me know

Thanks,
~Gertjan









Oli Filth

2005-05-01, 9:00 pm

GF wrote:
> Hello all,
>
> I'm building a system with php/mysql
>
> And I'm using the barcode script from http://www.ashberg.de/bar
>
> The system works as follows:
> 1. insert the number of products $prod_count
> 2. for loop generate barcode sring * $prod_count
> 3. save barcode string in the mysql db
>
> I want to select the barcode strings from mysql and
> print an dynamic html table with the barcode_images used from
> http://www.ashberg.de/bar


There is no such thing as a "dynamic table".

> -The barcodeprint page must fit on an A4 format


There is no way to guarantee that unless you send it as a PDF or
something similar.

> -Print option


Every browser has a print option already.

> -dynamic (so if I select just 4 barcode strings it'll print only that count
> of barcode_image)


Well, that's up to the PHP code that you use.

>
> How do I create an dynamic table and input the barcode string,
> through the barcode script into the table that will generate the image?
>
> And I was wondering is the best way to do this OO-oriented?


No offence, but if you don't know how to achieve your requirements
above, then it sounds as if you're not too hot at programming yet
(apologies if I'm wrong), so whether or not it's object-oriented is
irrelevant.

I suggest that you start from the beginning, e.g.
http://www.php.net/manual/tutorial.php, especially the bit about forms.
It'll be far more productive to actually learn how to write PHP scripts
rather than just hacking together bits and pieces without understanding
how they work.


--
Oli
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com