hi guys, i need a some help on reWRITING my URL.
i have my <a href> linked to "http://www.abcdefg.com/abc.php?data=xyz"
but i want it to appear as "http://www.abcdefg.com/abc.php" and still be able to use $_GET['data']
any help would be great. thanks.
OH, i also have stored procedure that inserts data into a table.
and when i call it with $mysqli->query($insertQuery);
no errors come up, BUT NO data is inserted into the table.
please help.
URL rewriting
Moderator: General Moderators
Re: URL rewriting
Why not just use $_POST instead?
could we see the query() function and the value of $insertQuery?xiaofei wrote:OH, i also have stored procedure that inserts data into a table.
and when i call it with $mysqli->query($insertQuery);
no errors come up, BUT NO data is inserted into the table.
please help.
Why not use POST
i am not using post because i am doing this through a link, and it has to be a link (a href).
the funciton is simply
create myProcedure (IN variableName varchar(100))
begin
insert into tableName (col2, col3, col4)
values (variableName, "NONE" , 0)
end
col1 is auto_increment value, and col4 is either a 0 or 1
the funciton is simply
create myProcedure (IN variableName varchar(100))
begin
insert into tableName (col2, col3, col4)
values (variableName, "NONE" , 0)
end
col1 is auto_increment value, and col4 is either a 0 or 1
Need more information
I wish I could understand what are you trying to do.
if you have a link like so
http://www.abcdefg.com/abc.php?data=xyz
just have it like that.
if not you can also have a
For the database problem , please post your code.
if you have a link like so
http://www.abcdefg.com/abc.php?data=xyz
just have it like that.
if not you can also have a
Code: Select all
<a href="javascript: foo(par1,par2)">link</a>For the database problem , please post your code.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
That's a strange request, but your only other option is to use sessions (or cookies, but that'd be nearly useless).xiaofei wrote:but i dont what the user to look at my underlying logic in the search
i will have links: A B C D .....Z
and when users click on A B or C... a list of food names will come up.
the procedure code is jsut as i've listed