Search found 43 matches
- Tue Jun 09, 2009 2:45 pm
- Forum: PHP - Code
- Topic: problems with image upload code
- Replies: 1
- Views: 113
Re: problems with image upload code
Looks to me that you resize the images to 300px on row 55, but I might be mistaken.
- Tue Jun 09, 2009 2:37 pm
- Forum: PHP - Code
- Topic: call function for each element
- Replies: 8
- Views: 300
Re: call function for each element
Your page is very confusing, and I couldn't find the form for the signup, so I'll just assume you save the POST-data in an array. What you then have to do is to simply loop through the array when inserting them into your DB.
- Mon Jun 08, 2009 2:02 pm
- Forum: PHP - Code
- Topic: make sql data
- Replies: 4
- Views: 493
Re: make sql data
I think there are alot of beginners guides regarding this type of thing. Nevertheless, here's one way to do it: # if isset bla bla $sql = mysql_query("SELECT * FROM table WHERE username = '$username' LIMIT 1"); if(mysql_num_rows($sql) > 0) { # The username is taken. echo "bla b...
- Mon Jun 08, 2009 12:54 pm
- Forum: PHP - Code
- Topic: make sql data
- Replies: 4
- Views: 493
Re: make sql data
Code: Select all
<?php
if(isset($_POST['submit'])) {
mysql_query("INSERT INTO table (username, generratedcode)
VALUES ('". trim(addslashes($_POST['textbox1'])) ."', '". cleanup_function_of_choise($_POST['textbox2']) ."')");
}
?>- Mon Jun 08, 2009 8:08 am
- Forum: PHP - Code
- Topic: send mail
- Replies: 2
- Views: 98
Re: send mail
What's with all the hashes and encodes?instead of view the file i saw a lot of chars
- Mon Jun 08, 2009 7:45 am
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
I take it that the pages are error-free now. I'm glad you managed to spot the last step by yourself. Anyone who has the brain to troubleshoot, has the brain to make the troubles in the first place. 
- Mon Jun 08, 2009 7:32 am
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
No, but that was still very useful. Assuming the script is 'sane', the problem lies with the reported amount of pages it should print, and not with the actual printing (since the system looks like it should for a 8-page system). Read the second half of my previous post. Hopefully there's a problem w...
- Mon Jun 08, 2009 7:17 am
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
No query, but variables. You assign values to variables, and then echo them out where your links ought to be.
=
$maxPage
$numrows
$rowsPerPage
Echo them out on row 88.
=
$maxPage
$numrows
$rowsPerPage
Echo them out on row 88.
- Mon Jun 08, 2009 6:58 am
- Forum: PHP - Code
- Topic: PHP Cron job error: "Could not open input file"
- Replies: 1
- Views: 303
Re: PHP Cron job error: "Could not open input file"
I'm not a Linux Guru myself, and I never got your method to work. The only thing that worked for me was to use wget in silent mode and define the url via localhost. Works perfectly.
- Mon Jun 08, 2009 6:56 am
- Forum: PHP - Code
- Topic: Multiple values from a db into an array
- Replies: 2
- Views: 180
Re: Multiple values from a db into an array
When using var_dump($questionSet), what do you get when you browse the sourcecode?
- Mon Jun 08, 2009 6:50 am
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
But wasn't that your code.... with a slight change that you suggested? Read the last row of my first post in this thread. It's not my code. You took it from the guide I linked to. I've said it several times, the code works 100% on my system. I supplied it back to you, and then told you to change th...
- Sun Jun 07, 2009 3:52 pm
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
1) Can you copy the URL of the link?
2) On page 1, can you copy and paste the links?
2) On page 1, can you copy and paste the links?
- Sun Jun 07, 2009 3:35 pm
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
Ah, lovely thing, computers. <a href='index.php?page=product&menu=categ&category=$mycateg&product=". $row['id'] . " title='Look at the ". $row['title'] ."><img src='images/productphotos/" . $row['photoprimary'] ."' border='0' /></a><br/>"; You'll have t...
- Sun Jun 07, 2009 3:29 pm
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
upload phpinfo.php to your server, which contains only the following: <?php phpinfo(); ?> And search for: display_errors error_log error_reporting And write what the values for those are. If error_log is set, see if you can find it via your ftp-client, download it, and browse it. error_reporting dis...
- Sun Jun 07, 2009 3:21 pm
- Forum: PHP - Code
- Topic: Limiting results to first 20 results, then next 20, then...
- Replies: 79
- Views: 3156
Re: Limiting results to first 20 results, then next 20, then...
Open your php.ini, search for "error_reporting" without the quotes, and make sure that row says:
Save the file, restart apache, and try again.
Code: Select all
error_reporting = E_STRICT