There is one that is there.... Look at ASSOC. It should be NUM.
There are results... 8 AMF.
TYFR
User Profile
Collapse
-
I usually do.
It prints the test var Hello..... Nothing else...
The error message does not print.Leave a comment:
-
The test variable Hello prints.... Other than that nothing happens...
Nothing obviously wrong with the syntax?
Thatnk you,
MarcLeave a comment:
-
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 = -
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)... -
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>';
...Last edited by pbmods; May 27 '07, 11:08 PM. Reason: Changed code language. Thanks for using CODE tags! -
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?
MarcLeave a comment:
-
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...Last edited by pbmods; May 20 '07, 04:18 PM. Reason: Changed code language. Thanks for using CODE tags!Leave a comment:
-
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.
... -
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....Leave a comment:
-
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?...Leave a comment:
-
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...Last edited by pbmods; May 15 '07, 01:48 PM. Reason: Changed code language. Thanks for using CODE tags! -
I found it!
The = sign in the id input tag......
Sorry to bother...
OdiseyLeave a comment:
-
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...
No activity results to display
Show More
Leave a comment: