If you need urgent support, call 999 or go to your nearest A&E. To contact our Crisis Messenger (open 24/7) text THEMIX to 85258.
Options
What kinda script would this be?
Former Member
Posts: 1,876,323 The Mix Honorary Guru
in General Chat
All I want is something that will allow users to visit the website, then paste whatever text they want into a box, and once the text has been pasted the script generates a link so they can send it their friends so they can view the pasted text.
0
Comments
Otherwise can have the same but save the data into the database and have the username in the link (http://yourdomain.com/view.php?user=name) that page then query the db and retrieve the content for the username...
I'm not to great with PHP so would need a ready made script.
which one you want, one using db or one creating html files?
Also do you want it to be so one user can have mutliple message or just one per user?
Just did it quite basic... Haven't done the view.php script, can do if you don't know how to retrieve the data from the database...
This script has been tested and work
You can also download the file for it here
If you could do the view.php, that would be great.
By the way, do you know the best resource for learning PHP?
For the erro message have you created the database table properly?
Cos tested the script and worked perfectly on my server...
No problemo
SELECT msg FROM ....
and I'd suggest changing the mysql_fetch to
$row=mysql_fetch_object($result);
and then use "$row->msg" instead of "$msg"
everyones a critic eh