[PHP-DB] Table name is variable

2003-03-13 Thread Dani Matielo
Hello. I am a begginer in PHP programming and I would appreciate any help. My problem is the following: I need to make the name of my table a variable. My thought was simple: $imprimir = mysql_query(SELECT id, data FROM $tabela,$db); but it doesnt work... how should i do it? Thank you in

[PHP-DB] MD5 Update

2003-03-16 Thread Dani Matielo
Please, help me with this: $preencher = mysql_query(SELECT * FROM alemao); $update = mysql_query(UPDATE alemao SET codigo = md5(concat(nome,email))); mysql_close ($db); whats wrong with my code? when I tell him to ? if ($update) echo Insert MD5; else echo No; ? he returns Insert MD5, but

[PHP-DB] Date format problem

2003-08-14 Thread Dani Matielo
Hello, I have a field in my mysql db wich is a timestamp with the format mmddhhmmss and I would like to display it like: dd/mm/ how do I do that? Thank you in advance, Dani --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com).