Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

am i the problem ??

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

am i the problem ??

Postby psycho » Fri Nov 29, 2002 4:00 am

Hi all, it's me again :-(

why does this code not work ???

Code for the furst page.

Code: Select all
<input type=text name="input" size=10>


code for the second page

Code: Select all
$input_test = $input*;
$ query = "select bla from bla where bla = '$input_test';

because when somebody does not know the full name of something they can look for first parts of it.

Could somebody please be so kind and explaine me why this does not work.

Thanks for you're time
Have a nice day
Psycho
psycho
New php-forum User
New php-forum User
 
Posts: 10
Joined: Tue Nov 26, 2002 5:35 am
Location: The Nehterlands

Try this

Postby them » Fri Nov 29, 2002 5:36 am

Hello,

I think your problem is that you should place " arround you statement.

$input_test = "$input*";

Good luck
them
New php-forum User
New php-forum User
 
Posts: 7
Joined: Fri Nov 29, 2002 5:29 am

Re: am i the problem ??

Postby Oleg Butuzov » Fri Nov 29, 2002 5:45 am

Code: Select all
<input type=text name="input" size=10>


code for the second page

Code: Select all
$input_test = '$_GET[input]';
$ query = "select * from `sometable` REGEXP = '$input_test';
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

thanks

Postby psycho » Fri Nov 29, 2002 7:00 am

thanks Pejone and them

Have a good weekend
Psycho
psycho
New php-forum User
New php-forum User
 
Posts: 10
Joined: Tue Nov 26, 2002 5:35 am
Location: The Nehterlands

Postby Oleg Butuzov » Fri Nov 29, 2002 7:32 am

you wellcome
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron