Search found 13 matches
- Sat Nov 16, 2002 11:27 am
- Forum: Databases
- Topic: trouble with decode function
- Replies: 6
- Views: 1375
Thanks for help! Now it 's more or less clear. In Oracle, it can be used to remap values, sort of like a simple case statement (or like an expanded IFNULL function). Is there an analog to this in MySQL? Well, i don't know exactly. I'm not sure if there is that kind of function in MySQL, which is lik...
- Sat Nov 16, 2002 2:35 am
- Forum: Databases
- Topic: trouble with decode function
- Replies: 6
- Views: 1375
- Fri Nov 15, 2002 2:25 am
- Forum: Databases
- Topic: trouble with decode function
- Replies: 6
- Views: 1375
trouble with decode function
Hi folks! I have a trouble running encode function in MySQL. The code is something like this <?phpif(!($insert = mysql_query("INSERT INTO ct_assistant VALUES(NULL,'$student_id','$a_username', ENCODE('$ct_assistant_pwd'))",$con))) { Error(sprintf("Internal Error %d:%s\n",my...
- Sat Sep 07, 2002 3:14 pm
- Forum: PHP - Code
- Topic: deleting files and folders
- Replies: 9
- Views: 1129
- Sat Sep 07, 2002 2:26 pm
- Forum: PHP - Code
- Topic: deleting files and folders
- Replies: 9
- Views: 1129
Thanx people for replies! :) I guess i figured out what was the problem. The problem was with while loop. Because actually sometimes it needs to run few times to delete few folders. But it occured so that it ran across empty or none existing folders, because they have been already deleted at first r...
- Sat Sep 07, 2002 4:14 am
- Forum: PHP - Code
- Topic: deleting files and folders
- Replies: 9
- Views: 1129
deleting files and folders
I have some problem with deleting files and folders. I have a script that deletes the files and folders inside another folder. Here it is: <?php $centre_id = 16; if(!($result11 = mysql_query("SELECT ct_centre_id, ct_centre_name from ct_centre WHERE ct_centre_id = '$centre_id'", $con...
- Tue Aug 27, 2002 10:32 am
- Forum: General Discussion
- Topic: problems changing mode
- Replies: 1
- Views: 1998
problems changing mode
I need to move a web site to a server. So when i want to change the mode of files, ftp says: "500 'SITE chmod ... ' command not understood. !Chmod failed. It might be not understood on a remote site." It says this always no matter what mode i change it to. And because of that the images ca...
- Sat Aug 24, 2002 1:55 pm
- Forum: PHP - Code
- Topic: What does it mean?
- Replies: 2
- Views: 559
- Sat Aug 24, 2002 1:21 pm
- Forum: PHP - Code
- Topic: What does it mean?
- Replies: 2
- Views: 559
What does it mean?
I'm working on a script which has been developed by another person. It deals with folder removing. Here is the part of code: if ($dir = @opendir("$dir2remove")) { while (($file = readdir($dir)) !== false) { if (!($file=="." || $file==".." || $file==&qu...
- Sat Aug 24, 2002 2:33 am
- Forum: Databases
- Topic: MySQL suddenly quits
- Replies: 5
- Views: 1710
- Fri Aug 23, 2002 1:18 am
- Forum: Databases
- Topic: MySQL suddenly quits
- Replies: 5
- Views: 1710
- Thu Aug 22, 2002 3:08 pm
- Forum: Databases
- Topic: MySQL suddenly quits
- Replies: 5
- Views: 1710
- Thu Aug 22, 2002 6:03 am
- Forum: Databases
- Topic: MySQL suddenly quits
- Replies: 5
- Views: 1710
MySQL suddenly quits
When I want to add the data to one table, after clicking on a submit button, MySQL shows the message "DBUG: Test signal" and then it says that "this program has performed an illegal operation..." and it closes the connection. I tried to add the data both with a php script and wit...