yeah like i only dreampt ... heehee
added one more line
///
updater.php?text=All%20Systems%20Stable&nws_id=1&image=no
<!-- code -->
if(isset($_GET['text']) && isset($_GET['nws_id']) && isset($_GET['image']))
{
$newtext=trim($_GET['text']);
$nws_id=trim($_GET['nws_id'])...
you are a legend you guys ....
thanks vacunita // Vragabond // KarveR its working legendary ...
i was an asp programmer for 3 years and moved over to LAMP ab out 3 months ago so im still green :) but im getting there ....
thanks for all your help ....
For reference final code looks like...
correction
updater.php?text=yip&nws_id=1
<!-- on this code -->
<?php
// check for text AND id to update
if(isset($_GET['text']) && isset($_GET['nws_id']))
{
$newtext=trim($_GET['text']);
$nws_id=trim($_GET['nws_id']);
// do our thang, we have a value
if(!empty($newtext))
{...
get error blah
http://url/updater.php?text=yip&id=1
<!-- on this code -->
<?php
// check for text AND id to update
if(isset($_GET['text']) && isset($_GET['id']))
{
$newtext=trim($_GET['text']);
$nws_id=trim($_GET['id']);
// do our thang, we have a value
if(!empty($newtext))...
thanks bro....
Parse error: parse error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in /updater.php on line 3
line 3
if(isset($_GET['insert_text'] && $_GET['nws_id']))
sorry im a clown ... i wasnt thinking ..
update a record
the marquee is coded like this on another page ....
##
<MARQUEE DIRECTION="LEFT" BEHAVIOR="SCROLL" WIDTH="165" BGCOLOR="#cccccc" ALIGN="CENTER" SCROLLAMOUNT="2">
<b><?php echo $row_rsNetworkStatus['nws_scroll']; ?></b>
</MARQUEE>
##...
update a record
> to change a marquee on the frontpage of my site
http://www.cyberdynamix.net/php/
> the network status will be updated dynamically running a query string ... /update.php?nws_scroll=xxxxxxx
-------------------------
... dudes i use ultradev to build wonderful powerful apps...
<?php
$nws_scroll = $_POST['nws_scroll'];
mysql_query("INSERT into network_status VALUES ('$nws_scroll') WHERE nws_id = '2')");
?>
a)does thislook correct?
b)string is // http:/url/updater.php?nws_scroll=Hello%20World............
c)do i need a record set?
thnks
D
--------------------------------------------------------------------------------
Hi there,
can anyone help i seem to be a little stuck.
i wish to use a url eg) http://url/insert.php?insert_text=xxxxxxx
to update an entry in my MySQL dbase WHERE nws_id = 2.
ie) whatever the value in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.