User Profile

Collapse

Profile Sidebar

Collapse
Odisey
Odisey
Last Activity: Aug 5 '08, 10:58 AM
Joined: May 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Odisey
    replied to Returning variables
    in PHP
    There is one that is there.... Look at ASSOC. It should be NUM.

    There are results... 8 AMF.


    TYFR
    See more | Go to post

    Leave a comment:


  • Odisey
    replied to Returning variables
    in PHP
    I usually do.

    It prints the test var Hello..... Nothing else...


    The error message does not print.
    See more | Go to post

    Leave a comment:


  • Odisey
    replied to Returning variables
    in PHP
    The test variable Hello prints.... Other than that nothing happens...


    Nothing obviously wrong with the syntax?


    Thatnk you,
    Marc
    See more | Go to post

    Leave a comment:


  • Odisey
    started a topic Returning variables
    in PHP

    Returning variables

    What is wring with this?

    Code:
    <?php  #Color instrument vars
           # ODC August 4, 2008
    	      
    require_once ('??????.php'); //Connect to database  RESET TO SAFE PATH ONCE IT FUNCTIONS
    
    // Define variables
    
    $var1 = "Hello"; 
    
    // Make selection  
    
    $query = "SELECT images FROM movie_images ORDER BY RAND() LIMIT 3";
    $result =
    ...
    See more | Go to post

  • Odisey
    started a topic Connecting

    Connecting

    Hello,
    I am somewhat familiar with MySQL, however I have a program called courseBuilder - actually Dreamweaver plugin, and another called Learning Site.

    In DW courseBuilder creates interactive javascript driven pages which are used for instruction and evaluation - teaching. Learning Site connects all the pages together with a common navigation - an admin sign in, student sign in, results (quiz)...
    See more | Go to post
    Last edited by Odisey; May 31 '07, 09:37 AM. Reason: spl

  • Odisey
    started a topic Unable to echo POST input
    in PHP

    Unable to echo POST input

    Hello,
    I am still getting these concepts. Help me learn. What is wrong here? Most echos are for testing.


    Thank you,
    Odisey


    [CODE=php]<?php #index php script 3.4

    echo '<p> 1 </p>';

    require_once ('mysql_connect _wvdiamonds.php '); //Connect to server


    echo '<p> Connected </p>';
    ...
    See more | Go to post
    Last edited by pbmods; May 27 '07, 11:08 PM. Reason: Changed code language. Thanks for using CODE tags!

  • Odisey
    replied to INSERTING data into MySQL using PHP Scripting
    in PHP
    NO edit button...?

    I guess I need to use the $mysql_insert_i d function following the initial insert...don't know the syntx though. Any ideas?

    Marc
    See more | Go to post

    Leave a comment:


  • Odisey
    replied to Validating a Paragraphed String
    in PHP
    Basher you want to use 'regular expressions'. Do a Google for recipe cut and paste scripts. Regular expressions in short are characters used - in this case - to constrain your data input to form. In other words, if a user does not input an email address as something@somep lace.ext they will get the }else{ error you code.

    Here is an example:

    I am using the eregi() function as !eregi and the eregi_replace. What...
    See more | Go to post
    Last edited by pbmods; May 20 '07, 04:18 PM. Reason: Changed code language. Thanks for using CODE tags!

    Leave a comment:


  • Odisey
    started a topic INSERTING data into MySQL using PHP Scripting
    in PHP

    INSERTING data into MySQL using PHP Scripting

    OK -I can do this in PhpMyAdmin (hard coded) - so its not a DB problem.

    I am just getting started - thank you for the help.

    I am creating a page to INSERT user information into two tables.

    The first table is easy to accomplish. The user first and last name, e address, and they set a password - is INSERTED. VALUES pass and the user_id PRIMARY increments automatically - a record is stored.
    ...
    See more | Go to post

  • Odisey
    replied to send error_log() message to email
    in PHP
    UPDATE: I have PHP 5 - MySQL 5 Apache/1.3.33 Server. I tested mail() and it sent the $msg. Then I reverted to error_log() and it sent the message.

    ...???...

    Not sure what happened. It takes 5 - 10 mins to get the message from the server, but it sends.

    THX - I will enjoy sharing ideas and helping out....
    See more | Go to post

    Leave a comment:


  • Odisey
    replied to send error_log() message to email
    in PHP
    OK - I am just learning here. I added a mail() with the error $msg attached and it worked. The original code I got from the book though is as above. I was under the impression that the error_log() function would act as the mail() function in this case and send the email to $email.

    Is that true?...
    See more | Go to post

    Leave a comment:


  • Odisey
    started a topic send error_log() message to email
    in PHP

    send error_log() message to email

    Hello,
    I am attempting to send an error_log() message to my email. I don't see any mistakes - yet it is not sending the email.... Any ideas?

    [CODE=php]
    <?php #Script 6.2

    //Flag variable for site status:

    $live = TRUE; // Test output switching status from TRUE; to FALSE;

    //Email error

    $email='odisey@ odisey.com';


    // Create...
    See more | Go to post
    Last edited by pbmods; May 15 '07, 01:48 PM. Reason: Changed code language. Thanks for using CODE tags!

  • Odisey
    replied to Problem with deleting records from DB
    in PHP
    I found it!

    The = sign in the id input tag......

    Sorry to bother...

    Odisey
    See more | Go to post

    Leave a comment:


  • Odisey
    started a topic Problem with deleting records from DB
    in PHP

    Problem with deleting records from DB

    I am not sure if this is a MySQL syntax error or a DB issue yet. I am getting the error from the code:

    Page Error!
    This page has been accessed in error.

    The GET is populated in the browser address window with a valid user ID, yet I get the error. I've studied this script - it should work.

    Any ideas?

    =============== =============== =====
    [PHP]
    <?php
    //This...
    See more | Go to post
    Last edited by Atli; May 14 '07, 10:17 PM. Reason: Added code tags
No activity results to display
Show More
Working...