[PHP] Knowing what page u came from...

2003-02-03 Thread Mr. BuNgL3
Hi again... There is any way to know what page we came from in php? I want to make a clause if i came from certain page in my web site... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can anyone help me? i'm getting crazy... : |

2003-02-03 Thread Mr. BuNgL3
I'm trying to delete a some records from a table with checkboxes and then i have this code: Lista de Filmes (DivX) ...TítuloCds $titulo$cds "; $i++; } echo ""; if($HTTP_COOKIE_VARS["cookie1"] && $HTTP_COOKIE_VARS["cookie2"]) { include('menuadmin2.php');

[PHP] Re: move a record into a different table

2003-01-31 Thread Mr. BuNgL3
put the data into variables, erase the record and then create a new one in the new table with the variable values! "Dc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I want to delete a record from my table 1, but would like all the data for > that

[PHP] doing auto number myself to a primary key...

2003-01-31 Thread Mr. BuNgL3
$sql="SELECT TOP(id) FROM divxtemp"; $res=mysql_db_query("DB",$sql) or die (mysql_error()); $reg=mysql_fetch_array($res); $id=$reg["id"]+1; $sql="INSERT INTO divxtemp (titulo,cds,id) VALUES ('$titulotxt','$cdstxt','$id')"; mysql_db_query("DB",$sql) or die (mysql_error(

[PHP] checkboxes and php...

2003-01-31 Thread Mr. BuNgL3
Hi... can you give me some lights in this subject? How checkboxes work with php? Or where i can find some info about this? Or both :) Ex: if i want to erase from db all data with the checkbox active... thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] PHP/MySQL

2002-11-22 Thread Mr. BuNgL3
Hi... What is the line code to optain the system date? I propose is to compare the system date with the date in one field in the database... Then what would be the mysql command to select all the rows with date with 10 days or less from the system date? Thanks... -- PHP General Mailing List (ht

[PHP] Newbie: PHP/MySQL (SELECT)

2002-11-20 Thread Mr. BuNgL3
Hi... I'm with a little sintax problem... The question is that i have two search fields (titulotxt and cdstxt) and i want to create an mysql condition... i trying: $sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":""; $sql2=($cdstxt) ? "cds like '$cdstxt'":""; $sql="SELECT * FROM divx WHERE

[PHP] Newbie: php/mysql (Select)

2002-11-20 Thread Mr. BuNgL3
Hi... I'm with a little sintax problem... The question is that i have two search fields (titulotxt and cdstxt) and i want to create an mysql condition... i trying: $sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":""; $sql2=($cdstxt) ? "cds like '$cdstxt'":""; $sql="SELECT * FROM divx WHERE

[PHP] damn it... i want to tranfer data from one table to another!

2002-11-17 Thread Mr. BuNgL3
Why i can't tranfer data from one table to another with this code? I can't pass "$reg" to $c and $t... : \ thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calling $PATH_INFO

2002-11-17 Thread Mr. BuNgL3
I'm with a little problem... i have this php code and when i lick F5 (refresh) it keeps adding files do database... i think "if ($Submit)" is not doing what i want! My propose is clicking on submit it adds me the $titulotxt and $cds to the database using $PATH_INFO. How must i do to resolve my prob

[PHP] connecting to a remote host through mysql.exe

2002-11-14 Thread Mr. BuNgL3
Hi... How can i connect to a remote host database through mysql.exe? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what i'm doing wrong? (mysql/php)

2002-11-03 Thread Mr. BuNgL3
I can't validate this two variables ($logintxt, $passwdtxt) ERROR!! Problemas na ligação á base de dados! "; } else { $pass=md5($passwdtxt); $sql="SELECT login,passwd FROM users WHERE (login='$logintxt') && (passwd='$pass')"; $result=mysql_db_query("mysite",$sql) or die (mysql_erro

[PHP] Can't store info on a mysql database...

2002-11-01 Thread Mr. BuNgL3
Hi... My problem is that i can't store info in a mysql database... ex: I want to store this info in my database: login/passwd and i have the php code... what i'm doing wrong? : | thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] newbie: apache prob...

2002-10-28 Thread Mr. BuNgL3
Hi... I have a little problem... when i do //localhost/ on the browser i don't get nothing it gives me "Forbidden - u don't have permission to access"... but i was the one that installed the apache server!! do u know what's the problem? Thanks -- PHP General Mailing List (http://www.php.net/) T

[PHP] newbie: php/mysql

2002-10-27 Thread Mr. BuNgL3
Hey... I have a little problem... i want to read an encrypted field from mysql database to a php variable... what is the code line that i must enter? (ex: password validation in a login form) Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u