Search:
Type: Posts; User: b3nj4m1n
Search :
Search took 0.02 seconds.
Of course it will restart, you are restarting the code by refreshing the page :-)
What is the purpose of refreshing?
And are you able to use php, or another server side scripting language in...
This question has been asked a hundred times, but I haven't been able to find the perfect solution, -yet.
I have a page where i load pictures dynamically when user clicks <- or -> buttons, with...
This is not necessary
<td align=\"center\">".(isset($_SESSION['user_id']) && $_SESSION['user_id'] == $row['user_id'] ? "<a href='/index.php?menu=status&delete={$row['ordre_id']}'>Delete</a>" :...
If you need the map to be interactive, you should find the coordinates for your location, and then add a marker directly in your javascript.
<script type="text/javascript"...
This should help:
if (isset($_SESSION['user']['id'])) {
if (isset($_REQUEST['delete'])) {
if (!eregi("[0-9]{4}", $_REQUEST['delete'])) {
die('Invalid ID');
if (isset($_REQUEST['delete'])) {
if (!eregi("[0-9]{4}", $_REQUEST['delete'])) {
die('Invalid ID');
} else {
$mysql->query("DELETE FROM ordrer WHERE ordre_id='{$_REQUEST['delete']}'");}
}
If you use jQuery, you can do stuff like that very easily
$("#ButtonId").click(function(){$("#TableCellID").animate({width: "200%"},1500 );});
Substitute "200%" with any % or px value.
1500 is...
No, it's the SQL statement, or the way you call the databse that is screwing around.
The last post was just a good thing to do under any circumstance :-)
Can you post the whole page? Or send me a...
You could also consider doing something like this, if you have a lot of parameters in the URL
$query_str ="";
$count = count($_GET);
$i = 1;
foreach ($_GET AS $var => $val) {
You probably need it to be
<a href='/index.php?menu=status&delete={$row["ordre_id"]}'>Delete</a>
You should set a standard value for menu in the top of your page, so it will always be set (doesnt...
Do you have rewrite-engine turned on?
If not, you will have to call status.php?delete=xxxx, instead of /status/?delete=xxxx
Remember that validation of the $_REQUEST parameter is CRUCIAL when...
You could do one of two things.
If you want to delete without reloading the page, then i would recommend that you get a javascript library with ajax capabilities, like jQuery
It will make your...
Hi.
I am developing a picture gallery, where pictures are dynamically loaded with jQuery (Like in the facebook picture gallery - prev/next button)
Everything is working fine, but there is one...