We have had two or more MySQL datasources in the same PHP script on a few
different sites. Can't really tell you much though as we didn't do anything
out of the norm to do it. Just connected to them.
Thought you might like reassurance that it has been done.
Cheers,
Owen
($string_of_numbers) to see if it has the leading 0's and what
its type is immediately before you insert into the DB.
Cheers,
Owen Prime
http://www.noggin.com.au
Michael Conway wrote:
> I have a problem using barcodes. They are variable in length (up to 13
> integers). I had to
they appear is arbitrary, but that makes no
matter for a MySQL enum. So just do an implode on the array to put it in
the database.
Cheers,
Owen Prime
http://www.noggin.com.au
John wrote:
> I'm new at using PHP and mySQL, so please forgive my potentially naive
> question.
>
>
number;
$cartArray[1]["Brand"] = $brand;
$cartArray[1]["Quantity"] = $itemqty;
$cartArray[1]["ItemName"] = $itemname;
Note that $cartArray[] = $val is just a short hand way of doing
array_push($cartArray, $val);
Cheers,
Owen Prime
http://www.noggin.com.au
Jonath
be an array.
Cheers,
Owen Prime
http://www.noggin.com.au
Nigel Dunn wrote:
> Hi,
>
> If anyone can help me with this I'd be most appreciative.
>
> I'm constructing 2 arrays of IDs from 2 different tables. Then I want to
> compare one to the other and only use
BTW... you only need to do it once. Subsequent INSERTS will follow on from
the previous insert.
Owen Prime wrote:
> Gavin,
>
> You can specify the next auto_increment id by using
>
> SET INSERT_ID = #;
>
> Where # is your desired number. Will only work for the next I
Gavin,
You can specify the next auto_increment id by using
SET INSERT_ID = #;
Where # is your desired number. Will only work for the next INSERT/ALTER.
Have a look down the bottom of 7.33 in the MySQL language reference.
Cheers,
Owen
Gavin Nouwens wrote:
> Hi peoples,
>
> Just wondering i