Search found 34 matches

by abionifade
Thu Oct 10, 2002 4:59 pm
Forum: PHP - Code
Topic: auto update a table
Replies: 2
Views: 1814

auto update a table

I have just inserted a new coloumn into an existing mysql table that has been in use for quite a while. I would like to insert the value 'sold' into that coloumn for every record that exists within the table. is there a mysql line that i can type into the command line that will do this for me? Thanks!
by abionifade
Fri Jun 14, 2002 7:29 pm
Forum: PHP - Code
Topic: Quick Explanation
Replies: 1
Views: 1731

Quick Explanation

hi guys,

can anybody tell me in english what this expression is doing?

especially the meaning and use of addslashes, nl2br.

Code: Select all

$filedesc = addslashes(nl2br($filedesc));
Thanks :D
by abionifade
Fri May 31, 2002 2:58 pm
Forum: PHP - Code
Topic: file upload modification
Replies: 2
Views: 2574

hiya,

really appreciate you getting back to me.

tried it out and unfortunately im still experiencing the same problem.

-Abi
by abionifade
Fri May 31, 2002 2:25 pm
Forum: PHP - Code
Topic: file upload modification
Replies: 2
Views: 2574

file upload modification

Hello, This is a script for handling file uploads to server side storage. At the moment, the uploaded file filename is manipulated. When i look at my hard disk the file which i have uploaded has no extension, however, im trying to modify this script to retain the physical file extension. Can anybody...
by abionifade
Fri May 31, 2002 2:03 pm
Forum: Databases
Topic: modifying my JOIN statement
Replies: 4
Views: 5457

Hi Mike, thank you so much for helping me out with this. here are the 4 dumps along with sample data for each table. Please do let me know if u'd like me to create some more same data. CREATE TABLE chosen_module ( user_id varchar(20) NOT NULL default '', module_title varchar(255) NOT NULL default ''...
by abionifade
Fri May 31, 2002 5:38 am
Forum: Databases
Topic: modifying my JOIN statement
Replies: 4
Views: 5457

Hi Mike, thanks for getting back to me.. :) I have tried this join statement SELECT * FROM student_table LEFT JOIN module_table ON student_table.course_id = module_table.course_id LEFT JOIN chosen_module ON chosen_module.user_id = student_table.user_id WHERE student_table.user_id='$newvar' I am pull...
by abionifade
Thu May 30, 2002 8:35 am
Forum: Databases
Topic: modifying my JOIN statement
Replies: 4
Views: 5457

modifying my JOIN statement

Hi guys, Any idea as to how I can modify my JOIN statement to include another table called chosen_module of which i'd like to select the field name module_title (from the chosen_module table) where student_id is also equal to $newvar? $query = mysql_query("select * from student_table left join ...
by abionifade
Wed May 29, 2002 11:34 pm
Forum: PHP - Code
Topic: Unable to pass variable...
Replies: 2
Views: 2740

absolute genius.

it worked a treat.

Thank you so much.


-Abi
by abionifade
Wed May 29, 2002 10:17 pm
Forum: PHP - Code
Topic: Unable to pass variable...
Replies: 2
Views: 2740

Unable to pass variable...

Hi guys - i have a drop down of which the module titles are populated from a table within mysql. Problem that i am having is that when i choose the module title, and click on submit, the following table does not display anything, im assuming that the variable isnt being captured and sent.. Can anybo...
by abionifade
Tue May 28, 2002 7:01 pm
Forum: PHP - Code
Topic: simple validation - newbie question
Replies: 2
Views: 2913

thank you very much,

it seems to work now with your help.

-Abi
by abionifade
Tue May 28, 2002 5:48 pm
Forum: PHP - Code
Topic: simple validation - newbie question
Replies: 2
Views: 2913

simple validation - newbie question

hi guys, tryin to get this validation script off the ground to check for the presence of the user_id field. Im unsuccesful in doing so as the record is still created in the database regardless of if the user_id field is complete or blank. Please do not laugh :) <?php if ($submitted) &#123; $quer...
by abionifade
Tue May 28, 2002 8:03 am
Forum: PHP - Code
Topic: email with php problems
Replies: 5
Views: 4396

thanks for getting back to me on this one...

assuming that i have got the correct smtp address, im wondering how the heck it autheticates me without the use of a password??

thats why im thinking do i need to configure anything to have my username and password for my mail acct?

Thanks :)
by abionifade
Tue May 28, 2002 7:51 am
Forum: PHP - Code
Topic: email with php problems
Replies: 5
Views: 4396

Warning: Unknown error in c:\program files\apache group\apache\htdocs\sis\primary\final\email_student.php on line 4

Your email was not successfully sent due to a system error!
by abionifade
Tue May 28, 2002 7:33 am
Forum: PHP - Code
Topic: email with php problems
Replies: 5
Views: 4396

email with php problems

hi guys, im having difficulty in activating the mail function within php. I have entered the outgoing smtp address and sendmail address within php.ini. I have created a script to send email which errors on line 4..... I am completely baffed as to how this could all possibly work, afterall, from the ...
by abionifade
Thu May 23, 2002 3:49 pm
Forum: PHP - Code
Topic: Code editors: wich one is good?
Replies: 23
Views: 14382