No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: Have you tried hashTables? I find them very useful when searching. Perhaps I am mistaken but Hashtabels are faster than array's aswell, because when seraching threw arrays, it starts from element 0 and moves its way up until if finds the source, while HashTables simply takes a guess at where … | |
[code=php]//create and issue the first query $add_topic_sql = "INSERT INTO forum_topics (topic_title, topic_create_time, topic_owner) VALUES ('$_POST[topic_title]',now(),'$_POST[topic_owner]')"; $add_topic_res = mysql_query($conn, $add_topic_sql) or die(mysql_error($conn)); //get the id of the last query $topic_id = mysql_insert_id($mysql);[/code] |
The End.