jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
There is a correct time for downloading, it's gonna be until 23:59 Central Time Zone (-5GMT).
-
Get CrossOver for FREE now! -> http://flock.codeweavers.com/
-
The onsubmit event occurs when the submit button in a form is clicked. It should be here, <form method="POST" onsubmit="dosubmit()">
-
The most important, what's the model of your graphic's card?
-
Unlike Windows, most hardware is natively supported in Ubuntu and does not require separate drivers to work. The Linux system is absolutely independent from windows system. I think it could be a good idea to post out the hardware' specifications of the machine.
-
Quick Way To Learn Php For Specific Purpose?
jazzman1 replied to zbdblues's topic in PHP Coding Help
Agreed! -
Database Not Updating - Retrieving Just Fine
jazzman1 replied to vicdesigns's topic in PHP Coding Help
Yep, you are right. It's my mistake.. -
Database Not Updating - Retrieving Just Fine
jazzman1 replied to vicdesigns's topic in PHP Coding Help
@Christian, don't you see something wrong here: @mysql_select_db(DATABASE_NAME, $database_connection) or die(((SITE_MODE == "development") ? mysql_error() : "An error occured! Please check your database exists!")); -
Database Not Updating - Retrieving Just Fine
jazzman1 replied to vicdesigns's topic in PHP Coding Help
Your ternary operator syntax is wrong. You cannot use it to assign two values as you are attempting to do. EDIT: The syntax is maybe okay, but you cannot use it in this way..... -
Try, <?php //This is the directory where images will be saved $target = "images"; //This gets all the other information from the form $first_name=$_POST['first_name']; $last_name=$_POST['last_name']; $email=$_POST['email']; $img_name=basename(($_FILES['image']['name'])); $tmp_name = $_FILES["image"]["tmp_name"]; // Connects to your Database include "connect.php"; //Writes the information to the database mysql_query ( "INSERT INTO `database`(`first_name`,`last_name`,`email`,`image`) VALUES ('$first_name','$last_name','$email','$img_name')" ); //Writes the photo to the server if(move_uploaded_file($tmp_name, $target.'/'.$img_name)) { //Tells you if its all ok echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory"; } else { //Gives and error if its not echo "Sorry, there was a problem uploading your file."; } ?> EDIT: You also had two errors in your sql string (two extra commas) I removed them...
-
No, that's no possible! You have to have a constants.php file in the same directory or you are handling a different file or you have more including files. Copy/paste this code to check where are you.. echo dirname(__FILE__);
-
I remember you Why are you using single quotes around it, in the very first post ? PS: It should be, if (!$config['text']['emptyMessage']) $config['text']['emptyMessage'] = CNT_TXT_EMPTYMESSAGE;
-
How did you define it? Could you post the code, please?
-
Thanks @reguinix, now it works fine I have a few different scripts to send a mass of email running by cron in 0, 5, 10, 15, 20 min.. When the script is done, I want to rewrite the content with php exit function. Thank you again buddy Solved
-
Hi friends, When I try to run the script by cron - it doesn't do anything. It works just fine running through the browser. <?php $pageName = basename($_SERVER['PHP_SELF']); file_put_contents($pageName, ''); ?>
-
phpMyAdmin does not want to connect to MySQL out of the box
jazzman1 replied to yoursurrogategod's topic in MySQL Help
What is the status of your database? For Fedora / RHEL / CentOS Linux : su -c 'service --status-all | grep mysqld' or su -c '/etc/init.d/mysqld status' оr su -c 'service mysqld status' -
Congrats Barand.
-
I'm thinking that your hosting provider it's blocking your ssl connection on port 465 to googlemail.com.. Why the same port works just fine to yahoo.com, I don't have an answer
-
Is it a shared hosting server?
-
Where do you execute the script - from a local machine or remote one ? I've tested it from my local server and got a successfully message.
-
Remove Array Duplicates Without Merging
jazzman1 replied to matthewtbaker's topic in PHP Coding Help
Try, $arrMain = array('the' , 'main' , 'array'); $arrTemp = array('some' , 'array' , 'stuff'); $resTemp = array_diff($arrTemp, $arrMain); echo '<pre>'.print_r($resTemp, true).'</pre>'; -
Yep, the maximum length of time to run the script is 425 seconds.. After that the script goes down.. :-\
-
I'm really going to think about that Thanks