Well, I had (and still have) the same problem! I have that undefined index error on IIS and Apache! I can't understand why!!!
Search found 64 matches
- Sun May 30, 2004 4:58 pm
- Forum: PHP - Code
- Topic: Session Problem
- Replies: 22
- Views: 1899
- Sun May 30, 2004 4:13 pm
- Forum: PHP - Code
- Topic: [SOLVED] New line in PHP forum
- Replies: 2
- Views: 334
- Sun May 30, 2004 12:25 pm
- Forum: PHP - Code
- Topic: [SOLVED] New line in PHP forum
- Replies: 2
- Views: 334
[SOLVED] New line in PHP forum
Hi!
Im making my own forum. When user will post a post and press enter I need my code to replaca New Line with <br>. How can I do this? In asp it was simple
But how does New line looks like in PHP? Thank you!
Im making my own forum. When user will post a post and press enter I need my code to replaca New Line with <br>. How can I do this? In asp it was simple
Code: Select all
Replace(vbcrlf,"<br>")- Wed May 26, 2004 7:34 am
- Forum: PHP - Code
- Topic: How to make categories in my own forum?
- Replies: 2
- Views: 292
How to make categories in my own forum?
Hi! Im creating my own forum. Everything works: Post, Reply, shows reply's/view's. I can create forums, but there is a litle problem. How can I create categories. I created a table for categories: ID,title. And in my Forum table there is field called categorie_id. Can anyone give me some tips how to...
- Sun May 23, 2004 10:00 am
- Forum: PHP - Code
- Topic: How to display two diferent text styles by Loop
- Replies: 3
- Views: 290
- Sun May 23, 2004 9:33 am
- Forum: PHP - Code
- Topic: How to display two diferent text styles by Loop
- Replies: 3
- Views: 290
How to display two diferent text styles by Loop
Hi! I know topic name sounds stupid, but how can I display something like this: 0 1 2 3 4 Here is my code: <?php for($i=0;$i<10;$i++){ $x = 0; if($x == 0){ echo "$i<br>"; $x++; } else { echo "<b>$i</b><br>"; $x--; } } ?> This is the result: 0 1 2 3 4 This is the result I need: 0 ...
- Fri May 21, 2004 2:44 pm
- Forum: PHP - Code
- Topic: Need tips for Forum Database
- Replies: 5
- Views: 458
- Fri May 21, 2004 12:06 pm
- Forum: PHP - Code
- Topic: Need tips for Forum Database
- Replies: 5
- Views: 458
Need tips for Forum Database
Hi! How to make a forum? I started to make a forum, I created a tables called forums and topics. The I created everything so far that I can post a post in any forum and it I can view it, but the problem is replys . How can I add reply? do i need to create new table? Please give me some tips how to m...
- Wed May 19, 2004 11:18 am
- Forum: PHP - Code
- Topic: SELECT count(*) FROM table, show invalid results
- Replies: 6
- Views: 444
- Wed May 19, 2004 10:56 am
- Forum: PHP - Code
- Topic: SELECT count(*) FROM table, show invalid results
- Replies: 6
- Views: 444
SELECT count(*) FROM table, show invalid results
Hi! Well Here is my code, to check how much records are in database <?php mysql_connect("localhost","user","password"); mysql_select_db("data"); $query_count = "SELECT count(*) FROM users"; $result_count = mysql_query($query_count); $totalrows = mysq...
- Mon May 17, 2004 7:49 am
- Forum: PHP - Code
- Topic: mysql_connect on each page?
- Replies: 6
- Views: 502
- Mon May 17, 2004 7:32 am
- Forum: PHP - Code
- Topic: mysql_connect on each page?
- Replies: 6
- Views: 502
- Mon May 17, 2004 7:17 am
- Forum: PHP - Code
- Topic: mysql_connect on each page?
- Replies: 6
- Views: 502
mysql_connect on each page?
Hi! I want to create a forum. For example I have 6 pages, who needs to connect to database and update information. <? mysql_connect("localhost","username","password"); mysql_select_db("data"); .... ?> As far as I dont change password or database name it is OK....
- Sat May 15, 2004 6:42 am
- Forum: Databases
- Topic: How to put it all in mysql_query?
- Replies: 1
- Views: 239
How to put it all in mysql_query?
Hi! This code will create database and then tables. <?php mysql_connect("localhost","root","q48cur3"); mysql_query("create database data"); mysql_query("use data"); mysql_query("create table users(username char(40))"); ?> Can I somehow writ...
- Wed May 12, 2004 2:02 pm
- Forum: PHP - Code
- Topic: GD Libary Not Working with PHP 4.3.6
- Replies: 8
- Views: 497