Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-16-2005, 05:33 AM Image code
Junior Talker

Posts: 2
Trades: 0
I don't know if it can be done but basically:

On page A there is a selection menu and the administrators can select an image they want. When selected the image would appear on page B to all visitors until it is changed again on page A.

Possible?
Thanks.
CrimsonT is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-16-2005, 12:48 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Totaly.

1. When Admin changes the "image" it is saved to a database.
2. Page "B" calls this database and displays the image.
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 01-16-2005, 01:13 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
If it is only one image, then I'd consider simply using a flat file.

PHP Code:
$image $_POST['img']; // say there is a select box named 'img' that holds image SRC's
$fh fopen('imgsrc.txt''w') or die('Could not open file for writing.');

fwrite($fh$image) or die('Could not write to file.'); // Write the image src to the file

fclose($fh);

echo 
"Thanks, done."
PHP Code:
$imgsrc file_get_contents('imgsrc.txt');
echo 
'<img src="' $imgsrc '" alt="" />'
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 01-16-2005, 03:20 PM
Junior Talker

Posts: 2
Trades: 0
Na, it's more likely going to be 4 or 5 images for the Administrator to choose from
CrimsonT is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67233 seconds with 12 queries