|
J
|
Jane 3/6/2009 |
|
Stephan,
global $record; $record["edit_link"]=false; |
|
|
M
|
mmponline author 3/6/2009 |
|
I get an error message: Undefined offset: 0
global $conn;
Undefined offset: 1
|
|
|
J
|
Jane 3/6/2009 |
|
Check me changes below: data = db_fetch_numarray($rs);
|
|
|
M
|
mmponline author 3/6/2009 |
|
This code works fine, but is applicable to the whole table. IOW Even the Admin and other users can't add if there is 1 record in the table. |
|
|
J
|
Jane 3/6/2009 |
|
Stephan, |
|
|
M
|
mmponline author 3/7/2009 |
|
I've added the code as suggested but now the add shows again no matter the amount of records. global $conn;
|
|
|
M
|
mmponline author 3/7/2009 |
|
See above comment... |
|
|
M
|
mmponline author 3/9/2009 |
|
No help on this yet. Please assist! |
|
|
J
|
Jane 3/10/2009 |
|
Stephan, |
|
|
M
|
mmponline author 3/11/2009 |
|
With the help of Jane, I got this snippet that will only allow 1 add per user once logged on. This is ideal if a person pays for a specific venue for example. He will then only be able to load one item but then edit and maintain it as needed. $rs2 = CustomQuery("select * from memusers where UserName='".$_SESSION["UserID"]."'");
|
|
|
M
|
mmponline author 3/12/2009 |
|
Here is the code for those interested. $rs2 = CustomQuery("select * from memusers where UserName='".$_SESSION["UserID"]."'"); |
|