-
Posts
1,842 -
Joined
-
Last visited
Posts posted by marcus
-
-
try
$result = mysql_query($sql) or die(mysql_error());
See if you get any errors.
-
Haha.
You need a form method.
Change:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" name="choosestation">
To:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" name="choosestation" method="get">
-
Well it could be your database. Is the event_time field marked as INT(#) ? or VARCHAR(#)?
If the field is an integer it won't allow the colons to be adding in.
-
Change
<select onchange="document.location.href=this.options[this.selectedIndex].value;">
to
<select onchange="document.location.href=this.options[this.selectedIndex].value;" name="stationid">
You simply left out the drop downs' name so it wouldn't pass the variable because it wasn't given.
-
You could something like this, naming all your files like page1.php page2.php
<?php $page = $_GET['page']; if(isset($page)){ $page = "$page.php"; if(file_exists($page)){ include($page); }else { echo "page does not exist"; } }else { include('index.php'); } ?>
-
do you currently own a domain?
-
Well if you're using a script to have it be inserted into the database you could do.
$sql = "SELECT * FROM `table` WHERE `field1` ='$field1'"; $res = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($res) > 0){ //dont insert }else { //insert query }
-
I don't mind helping, even if you don't have that much of a budget.
-
$row = mysql_fetch_assoc($query2); if(strlen($row['pat_ssn']) > 9){ //dont echo }else { echo $row['pat_ssn']; }
-
ontop of that, $300 is nothing to a php developer.
Well if you're in need of money i suppose it's good
sure, but not for an entire site.
Good point. But doesn't mean he/she won't pay for something like a reg/login system, or just a project to be given to the person.
-
ontop of that, $300 is nothing to a php developer.
Well if you're in need of money i suppose it's good
-
well since n00bie's can't send private messages, i was gonna send a message and say i'll help
-
-
You could always set a session with their username in it and just echo it out.
-
[code=php:0]
$newpass = md5($password);
//query
[/code] -
Replace the variable of the table name with the actual table name in your query.
-
$_GET['artID']
-
[code=php:0]
$sql = "UPDATE `$tablename` SET `win` ='$win_update', `loss` ='$loss_update' WHERE `user_name` ='$username'";
$res = mysql_query($sql) or die(mysql_error());
[/code] -
[quote author=Fearsoldier link=topic=124362.msg515116#msg515116 date=1169948400]
Wow are you serious
[/quote]
I'm sure he is, now, if you have nothing to say, just don't say it at all. -
Put quotes around the file name.
-
$name is set to $name = $_POST['name'] correct?
-
If you're using a mysql query this can be easily done while selecting it from the database.
[code=php:0]
$string = $_POST['string'];
$array = array('*');
if(in_array($string,$array)){
$sql = "SELECT * FROM `tablename` WHERE `blah` LIKE($string)";
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
//search contents
}
}else {
$sql = "SELECT * FROM `tablename` WHERE `blah` ='$string'";
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)){
//search contents
}
}
[/code] -
For linux, you could just go (if you're using cpanel) go into your cpanel and hit Cron Jobs, and hit Standard, and it's pretty self-explanatory from there.
-
[quote author=yogibear link=topic=123684.msg511554#msg511554 date=1169576651]
[quote author=jesirose link=topic=123684.msg511547#msg511547 date=1169576103]
This is why you don't just copy and paste code without understanding it. [b] isn't php, that's a bold tag.
Take that stuff out, and in the future POST the error, not just that you got one.
[/quote]
hi i did post the error it was in my second post and i also tried it with and without the bold tag i didnt just Copy and Paste but that is why people get help because they dont understand
thanks for help
[/quote]
Posting the error would be like the error you posted before ERRORNAME on LINE ### on FILENAME
[SOLVED] mktime()
in PHP Coding Help
Posted
Taken from example 415 in php.net date function.