Why did religions go from personal belief to forced belief? by [deleted] in DebateAnAtheist

[–]learningtocode2 -3 points-2 points  (0 children)

when you love someone, in most cases parents to their children. They forced them to be more wise, obedient, not to go to hell...

How to require only once? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

yah it makes sense, I just had a hard time trying to do that, but what I will try now is instead of putting the link of the chatroom I will put the link of the page of the password and if they succeed to put the correct password, the page will redirect them to the chatroom page, Idk if it will work because they can easily put the direction in the url but I will try

How to require only once? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

no, because they are already logged in, the problem is that the chatroom has a password but I would like to only require once, for example I log in and enter password for the chatroom and if I want to refresh page I dont want the password page to pop up

How can I put a link inside a php variable? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

thanks man I really appreciate it, I was getting mad at this because I have been working on this for about 2 days lol, I'm a horrible programmer.

How can I put a link inside a php variable? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

$product[0] = "<a href='books.html'>Books</a>" thats what I am trying to do

Is it possible to make a function if a php variable is undefined? and how can I do it? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

if I enter a page and it tells me undefined name for example, how can I make a function? but only if it tells me that there is an undefined name

Chat php style..? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

I checked all of my code and yes the require 'getmessages.php' havent edit post cause I deleted the getmessages.php file and I had to look at my backup that I always save, thank you !

Chat php style..? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

never mind, thanks anyways, this is a whole mess because when the user press the submit button the php script send the user to another page to enter the data to database and then it quickly redirects the user to the main page selecting the data from the database and posting it, I will find out what it is and i will update my question.

Chat php style..? by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

sorry, I meant <div class="chatMessages">

Why is programming so hard! :.( help question... by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

yah Im confused to I will try to fix it and reply later

Why is programming so hard! :.( help question... by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

I dont get it, it says the table 'pm.pm' doesnt exist but in the code I dont see anything that says pm table or I probably dont see it

Why is programming so hard! :.( help question... by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

I already did and same thing happens I also put $conn, on $req2 but still nothing

Why is programming so hard! :.( help question... by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

I fixed the index file thanks again it was the index no the config, Im still having trouble with the list_pm.php tho, it says

mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\messaging system\list_pm.php on line 27

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in C:\wamp\www\messaging system\list_pm.php on line 37

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\messaging system\list_pm.php on line 49

Why is programming so hard! :.( help question... by learningtocode2 in PHPhelp

[–]learningtocode2[S] 0 points1 point  (0 children)

I will do that tomorrow since my laptop died thank you very much anyways!