www.webdeveloper.com

Search:

Type: Posts; User: themonkey40

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,656

    Here is my table structure for the table: ...

    Here is my table structure for the table:

    CREATE TABLE `orders` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `po_number` varchar(7) DEFAULT NULL,
    `product` varchar(55) DEFAULT NULL,
    `date`...
  2. Replies
    2
    Views
    1,656

    Counting quantities in a database

    My company is hosting a sales promotion and all the data for each sale is kept in a mysql database. We want to see who the top salesperson is, by counting the number of sales of each participant,...
  3. Replies
    1
    Views
    1,371

    SSL Session Security

    I am building an online store for my company. Customer are able to buy one of our products from our website where we charge there credit card. We have purchased and installed an SSL cert on the...
  4. Replies
    4
    Views
    2,480

    Mindzai could you give me an example?

    Mindzai could you give me an example?
  5. Replies
    4
    Views
    2,480

    OOP Class can't close connection

    I am trying to write a function that closes the connection created in the following class:



    class dbConnect {

    function connect($dataB) {...
  6. Mindzai, when I tried your cod, I got the...

    Mindzai, when I tried your cod, I got the following error.

    "Warning: Missing argument 1 for MySqlDatabase::numRows(), called in...
  7. also, is there a way to close the database...

    also, is there a way to close the database connection in the dbconnect class after the query is run?
  8. That I am, practicing OOP. I made the $this->...

    That I am, practicing OOP. I made the $this-> change and it does work. Could you provide an example of what you mean by moving the connection to the constructor and as a seperate method?
  9. Connect Object Help (Newbie to OOP w/ PHP)

    Ok so I am trying to create a class that connects to mysql and runs a query. Here is the code:


    class dbConnect {
    public $host;
    public $user;
    public $passwd;
    public $dataB;

    function...
  10. Replies
    5
    Views
    1,858

    Thanks again criterion9. I used the while...

    Thanks again criterion9. I used the while statement and it worked.
  11. Replies
    5
    Views
    1,858

    Hampster, do you have a better piece of code I...

    Hampster, do you have a better piece of code I can use. Basically I can't get the loop to run. I fixed the semicolon (late night mistake).

    When I run the script now, I get an error that there is...
  12. Replies
    5
    Views
    1,858

    foreach Statement error

    I am getting an error from a foreach statement, not sure why, here is the code:


    $new_prod_id = $count + 100;

    function arrayQuery($f_prod_id,$table)
    {
    $sql=mysql_query("SELECT * FROM...
  13. $mra_number is the unique key across all my...

    $mra_number is the unique key across all my tables. Only one row per $mra number. How do I display the data from:


    function shipQuery($mra_num)
    {
    $mra_num = (int)$mra_num; // force integer...
  14. Replies
    21
    Views
    4,702

    Oh my gosh, that worked as is simply amazing...

    Oh my gosh, that worked as is simply amazing code. So stoked thanks for everyone's help. webdeveloper.com rocks.

    Special thanks to criterion9 for staying with me through my stupidness.
  15. Replies
    21
    Views
    4,702

    criterion9 I made that change in my HTML form,...

    criterion9 I made that change in my HTML form, how to I get the php process page to update all the rows using the function?
  16. Replies
    21
    Views
    4,702

    Ok I am getting a little lost, but really...

    Ok I am getting a little lost, but really appreciate everyone's help. Here is some code that may clarify things:



    updateSpec($_POST['id1'],$_POST['desc1'],$_POST['value1'],$_POST['num1'])...
  17. Replies
    21
    Views
    4,702

    What should my form look like?

    What should my form look like?
  18. Replies
    21
    Views
    4,702

    criterion9 I tried your code, but got the...

    criterion9 I tried your code, but got the following error message:

    Warning: Invalid argument supplied for foreach() in /edit_spec_process.php on line 5

    Any ideas why?
  19. Create Function For Array of Data from MySql

    I am writing a program where I repeat this code on numerous pages:

    $shipping_query=("SELECT * FROM `shipping` WHERE `mra_number`='$mra_number'");
    $shipping_result = mysql_query($shipping_query);...
  20. Replies
    21
    Views
    4,702

    when I use the following code: $count = 25;...

    when I use the following code:

    $count = 25;
    for($i = 1; $i < $count; $i++) {
    echo "the var is" . $id[$i] . "<br>";
    }
    exit();

    i get the following output:
  21. Replies
    21
    Views
    4,702

    would something like this work? $count = 25...

    would something like this work?


    $count = 25
    for($adder = 1; $adder < $count; $adder++)
    $id[$adder] = $_POST['id[$adder]']; ...
  22. Replies
    21
    Views
    4,702

    would something like this work? $count = 25;...

    would something like this work?


    $count = 25;
    for($adder = 1; $adder < $count; $adder++)
    $id[$adder] = $_POST['id[$adder]'];

    would it then do this 25 times?
  23. Replies
    21
    Views
    4,702

    here is the form page code:

    here is the form page code:

    <tbody>
    <?php
    $num_adder= 1;
    $desc_adder= 1;
    $value_adder = 1;
    $id_adder = 1;
    while($spec=mysql_fetch_array($sql)) { ?>
    <tr>
  24. Replies
    21
    Views
    4,702

    yes Could it also work like this? $adder = 1; ...

    yes Could it also work like this?

    $adder = 1;

    while($adder <= $count){

    $id[$adder]=$_POST['id[$adder]'];
    $desc[$adder]=$_POST['desc[$adder]'];
    ...
  25. Replies
    21
    Views
    4,702

    Not totally making sense to me. Let me give you...

    Not totally making sense to me. Let me give you more code to explain better.
    $adder = 1;

    while($adder <= $count)

    $id1=$_POST['id1'];
    $desc1=$_POST['desc1'];
    $value1=$_POST['value1'];...
Results 1 to 25 of 107
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles