Jump to content

taquitosensei

Members
  • Posts

    676
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by taquitosensei

  1. looking at a few forums it looks like orange smtp is ip restricted. It won't allow you to do authentication. If the google mail server will allow you to use a port other than 25 that would be the way to go.
  2. SoapClient is from PHP's Soap Client use nusoap_client $c = new nusoap_client('http://localhost/+++/webserver.php');
  3. $newstring=$string." ".$string2; $newstringlength=strlen($newstring); if($newstringlenth > 100) { // do whatever }
  4. also remove the quotes around numbers. It's changing it to a string then back to an integer to compare it. Just leave it as an integer by getting rid of the quotes.
  5. actually that would spit out the 3rd element. Arrays start with zero. you could do print_r($Val_Store); that will give you a better idea of what's in the array.
  6. It only matters so far as what looks good to you and will make it easier to read in a year when you have to go back and make changes and additions.
  7. instead of echo '<TR><TD style="width: 40pt">'.$date.'</TD><TD style="width: 40pt">'.$office.'</TD>...... do $body.= '<TR><TD style="width: 40pt">'.$date.'</TD><TD style="width: 40pt">'.$office.'</TD>...... the dot will concatenate each line onto the previous then you just use $body in the body of your e-mail.
  8. $quantity is probably defined outside of that function or not defined at all. You should probably pass quantity to the "char" function along with $parser and $data.
  9. $query="select ID, CODE from features order by ID asc"; $result=mysql_query($query); while(list($id, $name)=mysql_fetch_row($result)) { $select_array[$id]=$name; } then foreach($select_array as $id=>$name) { echo "<option value='".$id."'>".$name."</option>"; }
  10. you're not ending your double quotes before concatenating $querybuy=" SELECT users_stocks.bank, stocks.t_val FROM users_stocks, stocks WHERE user_id = '" . $_SESSION['user_id'] ."' AND stock_id = '$stock_id'"; $result = mysql_query($querybuy) or die(mysql_error());
  11. post the whole thing. sometimes an error is really on a line previous to the line it's reporting. The line it's reporting is just where it actually broke not what caused the break. It sounds like it didn't decode properly for example. for ( ; $i < $total_pages + 1; ) while ( 0 - ++$i ) should be something like this for($i=0; $i < $total_pages + 1; $i++) and you've got non matching braces etc. etc. so post the whole script and you're more likely to get someone to take the time to go through and make suggestions on how to fix it.
  12. your forgot the $ in front of index2 and 3 if it is an key then it should be surround by single quotes. if ($Data[$index][$index2]['Name'] == $Data[$index][$index3]['Name']){ //THIS IS PROBLEM LINE
  13. not sure what you're trying accomplish here and this won't work because you have two request variables named "name" but this is kind of how you would do this <form action="profiles.php" method="get"> <input type="hidden" name="username" value="<?php echo $name; ?>"> <input type="text" name="name"> <input type="submit" name="submit_name"> </form> then to echo on profiles.php if(isset($_POST['submit'])) { $name=$_POST['name'] echo "This is a profile of"; echo $name; }
  14. % divides and gives you a remainder. So if the remainder is zero then your variable is divisible by whatever number you picked. so something like this should be close $counter=0 yourloophere { if($counter==0) { echo "<div>"; } else if($counter%9==0 && $counter==$numberofdatabaserecords) { echo "</div>"; } else if($counter%9==0) echo "</div><div>"; } // echo your html here $counter++; } $counter++; }
  15. the first variable in a url is prefaced by a ? the rest with &
  16. This should do it. There's probably a more efficient way, but this should work. error_reporting(E_ALL); $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Connection Error:' . mysql_error()); } mysql_select_db('catgories', $con); for($i=0;$i<=17659;$i++) { $query="INSERT INTO categories(`products_id`,`categories_id`) select $i,categories_id from categories"; mysql_query($query); }
  17. I'm confused. Are you wanting to put 1-17659 for each categoryid pulled from the database? something like this productid categoryid 1 1 2 1 3 1 ..to 17659 1 2 2 2 3 2 ..to 17659
  18. try viewing the source and see if it shows the correct value for the image, then try to browse to the location the source shows to see if it comes up.
  19. I don't see anything obvious. What errors are you getting?
  20. I see your functions. Where's the code that calls the functions?
  21. try using [ php ]code[ /php ] tags (without the spaces ) it makes it much easier to read and people will be more likely to respond.
  22. if the extension isn't stored as part of the file name echo "<td width='200'><img src='". $row['image_url'] .".jpg'></td>"; if it is echo "<td width='200'><img src='". $row['image_url']."'></td>";
  23. first of all use php tags it makes it much easier to read. if your date column is a datetime value you could do this $query = 'select date_format(date,'%d/%m/%Y') as date, name, time, venue, info from tbl***** order by date DESC LIMIT 0,5'; or in php $formatted_date=date("d/m/Y", strtotime($row['date']));
  24. try this $sql="INSERT INTO feeds (id, title, description, content) VALUES ('NULL','$header','$description','$content')"; echo $sql; mysql_query($sql); see if it makes sense. You can post it here and someone will try to help.
  25. Let's say you want to get all the comments. Regardless of who posted them select * from data_gallerycomment UNION select * from data_blogcomment UNION select * from data_videocomment order by date
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.