mike1313
-
Posts
116 -
Joined
-
Last visited
Posts posted by mike1313
-
-
That would work, but basically I need it so if they put music like? It would return the same results. So basically I need to search the entire string for two words like and music no matter what words come in between or what order they are in as long as they are in the same string.
-
Alright basically what is want to do is take user input and I want it to check if the user asked if you like music?
And I want to have so if you just entered, like music? it would return the same. So do you like music? and like music? would return the same result.
So,
Would preg_match be the best solution?
Thanks in advance.
-
I want my page view.php?id=#
Where number can be any number 1-99 for example
and I want it to go to view.php instead of view.php?id=55
How can I do this?
-
Anyone?
-
Post your code
-
So if I wanted my forums to display topics in threaded style say I have 2 tables topics and posts would using a JOIN be the best way to do this?
I would want this sort of output
Topic1
-Reply1
-Reply2
-Reply1_2
-
or
$result = mysql_query("...") or die("Error in query: " . mysql_error());
-
This is what I do, if this doesn't work, then it's not stored as a INT
while ($row = mysql_fetch_object ($result))
echo date('m/d/Y-H:i',$row->timestamp);
If you left out the extra set of () that may have been your problem
-
In the database is it being stored as an INT or are you trying to store it as TIMESTAMP?
-
try
foreach (mysql_fetch_array($result) as $row) { echo(date('format string', $row[timestamp])); }
-
So, is it being stored in the database as an integer?
-
-
Do you have Apache and PHP installed locally?
-
Post more code like your selection query
-
-
How do you have the code for your <a> setup?
-
$result = mysql_query("SELECT * FROM Loans"); $num_rows = mysql_num_rows($result); IF ($num_rows <=25){ $date = date("Y-m-d G:i:s", strtotime("+1 Day")); $date0 = date("Y-m-d G:i:s"); $date1 = date("Y-m-d G:i:s", strtotime("+2 Day")); $date2 = date("Y-m-d G:i:s", strtotime("+3 Day")); $date3 = date("Y-m-d G:i:s", strtotime("+7 Day")); } ELSEIF($num_rows > 25) { $date = date("Y-m-d G:i:s", strtotime("+2 Day")); $date0 = date("Y-m-d G:i:s"); $date1 = date("Y-m-d G:i:s", strtotime("+3 Day")); $date2 = date("Y-m-d G:i:s", strtotime("+4 Day")); $date3 = date("Y-m-d G:i:s", strtotime("+7 Day")); } ELSE { //some code }
-
Looks good in Firefox. Nice job.
-
Is size your own function? If so post code.
-
-
It really depends what all you want to accomplish with it.
-
I have javascript code that in order to function properly has to be placed before the starting <html> tag, but when I do this it increases the font size of the text on the main page. Is there a way to fix this?
-
It just depends of the skill level of the programmers involved really.
-
Well it all depends really, coming up with the concepts of the game, characters, story, etc is probably the most time consuming. Considering the 2 people know what they are doing code wise that part shouldn't take entirely too long.
Can't find old threads/posts
in PHPFreaks.com Website Feedback
Posted
I intended to go back to some of my older threads and posts but when I checked my profile there aren't any? Did my stuff get deleted? Thanks.