Re: [PHP-DB] Accessing my variables

2004-02-11 Thread Fedde van Feggelen
My problem is: I have an include file: global.inc.php Inside that file I have: $myVariable = xankjndckjnskncd; now I have a index.php that has: ? Include('global.inc.php); Print $myVariable; ? Anyone got a clue on this one? Depends on what your problem is, not really a clear problem

Re: [PHP-DB] Question

2004-02-09 Thread Fedde van Feggelen
Heyaz, You've got some unclosed statements. Try using tabs for each statement to make it easier on yourself like: if ($iusetabs == true){ echo like this ; } And in your code.. things go wrong here: == echo /table; echo input type='submit' value='See

Re: [PHP-DB] SMTP authentication

2004-02-09 Thread Fedde van Feggelen
I want to ask you, how I must setup my PHP.INI file, to send e-mail from my Web Site if my SMTP server requires authentication. Otherwise, I want to know if exits some kind of public SMTP sever that I could use. I think you don't need to adjust your php.ini for that, just use the right params

Re: [PHP-DB] How to do freeform text search across multiple fields ??

2004-01-25 Thread Fedde van Feggelen
What I wanna do is make it possible to search for partial content in model,variant, and type fields, all 3 at the same time, or each individually as the user wants...case insentive too ... ? //assuming you got a POST from the form :) reset ($_POST); while (list ($key, $val) = each ($_POST)) {

Re: [PHP-DB] viewing search result

2004-01-05 Thread Fedde van Feggelen
str_replace(' ','%',$searchwords); $query=select * from table where colom like '%$searchwords%' order by id desc ; $result=mysql_query($query); $numresult=mysql_num_rows($result); Use limit in your select statement. laters, Fedde ~=There's a fine line between genius and insanity. I have

Re: [PHP-DB] Skipping a row

2003-12-18 Thread Fedde van Feggelen
I have a select statement that goes to my mySQL db and selects some data from there. I thought it was working great BUT it is skipping the first row. Any ideas? I know it has to be somehting simple I am missing. What is the SQL statement you're currently using? Fedde ~=There's a fine line

Re: [PHP-DB] pathinformation from file-field

2003-10-06 Thread Fedde van Feggelen
how can I get the pathinformation you can see in the file-field if you chose one file within a formular for transfer. http://nl.php.net/manual/en/function.pathinfo.php ? laters, Fedde ~= Everybody lies, but it doesn't matter because nobody listens =~ -- PHP Database Mailing List

Re: [PHP-DB] MYSQL Query problem...

2003-09-21 Thread Fedde van Feggelen
is there something wrong with my SQL Query? I didnt get any results neither errors.. ?php $link = mysql_connect('localhost', 'username') or die('Cannot connect to the database.'); mysql_select_db(profiles,$link); $SQLQuery = INSERT INTO profyles (username, fname, mname, lname, address,

Re: [PHP-DB] Unique user ID?

2003-09-06 Thread Fedde van Feggelen
Ow, but is there not a way to recognize a user the next time he logs in? Ehm, you could use the user's ip address, and hope it isn't a dynamic one. Or you'll just have to use a cookie. Cheers, Fedde van Feggelen ~= Even a broken clock is right at least twice a day =~ -- PHP Database Mailing