Search found 19 matches
- Thu May 28, 2009 4:51 pm
- Forum: Databases
- Topic: Split MySQL result into groups of 4
- Replies: 2
- Views: 3268
Re: Split MySQL result into groups of 4
Great!!! Thank you very much! 
- Thu May 28, 2009 11:11 am
- Forum: Databases
- Topic: Split MySQL result into groups of 4
- Replies: 2
- Views: 3268
Split MySQL result into groups of 4
Maybe today my brain isn't much of use
but I need help to split mysql result into groups of 4 like
result1
result2
result3
result4
(and here goes some delimiter like <hr/> or something like that..)
result5
result6
result7
result8
(delimiter again)
.. etc to the end of the mysql array...
result1
result2
result3
result4
(and here goes some delimiter like <hr/> or something like that..)
result5
result6
result7
result8
(delimiter again)
.. etc to the end of the mysql array...
- Tue Apr 21, 2009 7:33 am
- Forum: Databases
- Topic: Connecting to Oracle with PHP
- Replies: 2
- Views: 591
Re: Connecting to Oracle with PHP
If I understand you well, you r asking for this? (ofcourse with OCI extension): <?php if ($c = oci_connect("blah", "blah_password", "localhost/base")) { echo "Successfully connected to Oracle.n"; oci_close($c); } else { $err = oci_error(); echo...
- Thu Apr 09, 2009 2:47 pm
- Forum: PHP - Code
- Topic: Different Info through variables???
- Replies: 9
- Views: 495
Re: Different Info through variables???
http://www.php.net/manual/en/reserved.variables.get.phpkedora19 wrote:Thanks... IT WORKED. DO you have any website for expanding my knowledge of the _GET feature
- Thu Apr 09, 2009 2:32 am
- Forum: PHP - Code
- Topic: Different Info through variables???
- Replies: 9
- Views: 495
Re: Different Info through variables???
change into:
Code: Select all
if (mysql_num_rows($takeuser) < 1)
- Wed Apr 08, 2009 1:21 pm
- Forum: PHP - Code
- Topic: PHP and MYSQL image management [solved]
- Replies: 8
- Views: 2883
Re: PHP and MYSQL image management [solved]
For more formats, just create second $desired_extension1 = 'gif' and add in the corresponding "if" clause that extension and you're ready to roll :). Random number is for purpose of making this directory more unique. maybe your login system demands login by email, and usernames may be dupl...
- Wed Apr 08, 2009 12:07 pm
- Forum: PHP - Code
- Topic: Different Info through variables???
- Replies: 9
- Views: 495
Re: Different Info through variables???
I think that you didn't understand
.. Post your code and post your table structure here
- Wed Apr 08, 2009 12:05 pm
- Forum: PHP - Code
- Topic: Spaces in URL
- Replies: 9
- Views: 2578
Re: Spaces in URL
Meaby you didn't understand me, "kodi, emri, firma" etc... aren't always the same, they depend in the result of each row. I just said an example with "Gorenje 2 Series", and I can't replace spaces with - because in shisni.php the information have to show as in previous page. Not...
- Wed Apr 08, 2009 11:52 am
- Forum: PHP - Code
- Topic: PHP and MYSQL image management [solved]
- Replies: 8
- Views: 2883
Re: PHP and MYSQL check empty values (any ideas appreciated)
I would try to explain you through the code: <?php /* Here is your registration script for example. I will do it really simple, but you will understand what is the purpose of storing the directory name in your table and how you can do it. */ $pass = md5($_POST['pass']); // and then let's suppose t...
- Wed Apr 08, 2009 8:03 am
- Forum: PHP - Code
- Topic: PHP and MYSQL image management [solved]
- Replies: 8
- Views: 2883
Re: PHP and MYSQL check empty values (any ideas appreciated)
I think you might consider this option. One table for users, with another field name "directory". For example, when your user is registered, create some random unique number or word, and with that value create specific directory ( How to create directory? ) for him and store it in your use...
- Wed Apr 08, 2009 7:29 am
- Forum: PHP - Code
- Topic: Different Info through variables???
- Replies: 9
- Views: 495
Re: Different Info through variables???
Did you creat sour users table in mysql database? Or did you open your connection to it? <?php $link = mysql_connect('yourhost', 'username', 'password'); //replace with yur own values for connection to your database if (!$link) { die('Could not connect: ' . mysql_error()); } $dbname = 'yourdat...
- Tue Apr 07, 2009 7:26 pm
- Forum: PHP - Code
- Topic: Help with this login code
- Replies: 4
- Views: 1166
Re: Help with this login code
If your passwords are md5 encrypted in your database (like I see it in your code), then in naeem1984 script you must encrypt user input
line 3
And I see that you don't clean user inputs anywhere. I advise you to sanitize inputs before using them in queries.
line 3
Code: Select all
$password = md5($_POST['password']);- Tue Apr 07, 2009 6:20 pm
- Forum: Databases
- Topic: Display result from MySQL in columns using CSS
- Replies: 9
- Views: 1429
Re: Display result from MySQL in columns using CSS
Thank you very much for this, and I really didn't expect every part of code from you
. I gave example in my first post to explain better what is my problem. And my problem was displaying the result tableless (with DIV's), but ok
. Someone will need this code. And again thank you.
- Tue Apr 07, 2009 5:50 pm
- Forum: PHP - Code
- Topic: Spaces in URL
- Replies: 9
- Views: 2578
Re: Spaces in URL
First of all why are you using spaces in your url's? it's much simpler like this: <?php $somestring = 'Gorenje 2 series'; $fixedstring = strtolower(str_replace(" ", "-", $somestring)); //replace spaces with -, and change case //and then just echo '<a href="domain.com/send.ph...
- Tue Apr 07, 2009 5:38 pm
- Forum: Databases
- Topic: Display result from MySQL in columns using CSS
- Replies: 9
- Views: 1429
Re: Display result from MySQL in columns using CSS
Yes m8
I've changed name of the field.. But I'm affraid that I must leave this approach and get back to simple tables even though I don't like them
.. It's really confusing... And on the internet there's no such solutions.. It's possible somehow, but for me now it's mission impossible 