Home     Articles & Projects     Products & Web Services     Forum

Wont run

Hi, I am having an issue with this simple script but when I remove the randstring it works the randstring is a var(40)

<?php
mysql_query
("INSERT INTO tbl_radio_station
(radio_station_name, radio_station_description, radio_station_homepage, radio_station_keywords, radio_station_low_stream, type, radio_station_high_stream, type_high, radio_stream_type_high, randstring)
VALUES ('$name', '$about', '$stationurl', '$stationkeywords', '$lowstream', '$low_stream_type', '$highstream', '$high_stream_type', '3', '4545')"
;
?>

Hi Russell, If you call

Hi Russell,

If you call mysql_error() immediately after the failed call that should describe the problem - it normally points directly to the reason why the query failed...

Cheers,
David.