fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
thank you
-
heres a snippet quick
while($friend_query_array = mysql_fetch_assoc($friend_query)) { $friend_id = $friend_query_array['friend_id_array']; $query = mysql_query("SELECT * FROM events WHERE userid=$friend_id ORDER BY id DESC"); $queryrow = mysql_num_rows($query);
if i echo $queryrow i get 02 for the two times that it checks the num rows
-
ok guys, im going out the door so forgive me for not showing any code..but I have a while loop whithin a while loop to display rows for two different id's. I have a mysql_num_rows vaiable set that displays 0 because there are 0 rows with the userid of 1...then it displays 2 because there are 2 rows with the userid of 3..now what i want to do is find a way to omit the return of 0 so that i can use the return of 2 alone. sorry if im not clear enough.
-
well saving it to a session will definitely decrease upload time..but you need to make sure that the value is updated frequently
-
if you do what gevesen said....next you will set the link href to
Entertainment.php?month=$month&year=$year
-
only way i can think of is to use the header like i said..make it a button but change its style so that it appears like a normal string of text
-
look in your php.ini file for your smtp settings
-
instead of making it a link...you could use a header to redirect users to the correct page when the submit button is clicked..
-
what is the output/errors that you are receiving?
-
can i ask why you want to change the type of loop?
-
glad we could help
-
Yeah. Shoul be all one line without line breaks
-
There should be no $ in that line of code
-
So you want to get te values of month and day from the URL?
-
Look into str_replace() or preg_replace()
-
If you didn't have the parenthesis it wouldn't be a valid query
-
You still Need empty quotes fir the field
-
if you have 3 fields in your database then you will need to insert 3 pieces of data..his code only inserts 2 so it wont work
-
mysql_query("insert into tags values('tag_id', 'post_id', 'tag')");
-
unfortunately...array keys are case sensitive..so in order to call a certain key you will need to type it exactly as it appears in the array
-
i would recommend storing them inside of a database...much easier and efficient. but i suppose that you could store them into a file and draw them out as needed
-
yeah...definitely need to validate your forms and protect again sql injection etc.
-
first thing that comes to my mind is use FTP but that of course requires you having his password and username...I will look into it
-
it looks to me like you don't have any code set up to actually check to make sire that the user has filled out all required fields before sending the email.
syntax error
in PHP Coding Help
Posted
what errors do you receive when running this script?