Re: [PHP] Need help to create HTML table with 2 columns.
second column should print next record that was returned from the query. Thanks. John >From: "Jeff Lewis" <[EMAIL PROTECTED]> >Reply-To: "Jeff Lewis" <[EMAIL PROTECTED]> >To: "John Bass" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Re: [PHP] Need help to create HTML table with 2 columns. >Date: Thu, 23 Aug 2001 11:29:36 -0400 > >What did you want in the second column? I was just going by what you had >listed below: $row->image_link, > > > > $row->web_url,$row->image_link, $row->web_url); > > >Jeff >- Original Message - >From: "John Bass" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, August 23, 2001 11:16 AM >Subject: Re: [PHP] Need help to create HTML table with 2 columns. > > > > Hi, > > > > Thank you for the email. I tried your code, but first column is >printing > > image_link & web_url fields correctly and second column is repeating >values > > of the first column. > > > > Other records or rows are printing same way. > > > > Regards, > > > > John Bass > > > > >From: "Jeff Lewis" <[EMAIL PROTECTED]> > > >Reply-To: "Jeff Lewis" <[EMAIL PROTECTED]> > > >To: "John Bass" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > > >Subject: Re: [PHP] Need help to create HTML table with 2 columns. > > >Date: Thu, 23 Aug 2001 10:41:08 -0400 > > > > > >John, > > > > > >Try this: > > > > > > > > > > >$query = "SELECT image_link, web_url FROM testdata"; > > >$result = mysql_query ($query) or die ("Query Failed"); > > >while ($row = mysql_fetch_object ($result)) > > > { > > > printf ("".$row->image_links."".$row->web_url." > > >".$row->image_link."".$row->web_url."\n"); > > > } > > > ?> > > > > > > > > >- Original Message - > > >From: "John Bass" <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Thursday, August 23, 2001 10:30 AM > > >Subject: [PHP] Need help to create HTML table with 2 columns. > > > > > > > > > > Hi All, > > > > > > > > I am trying to generate a table with two columns. Each column >should > > >print > > > > 2 fields named image_link and web_url. Have spent over week looking > > > > documentations and trying different coding but nothing is working. >Any > > >help > > > > will be greatly appreciated. > > > > > > > > > > > > > > > $query = "SELECT image_link, web_url FROM testdata"; > > > > $result = mysql_query ($query) or die ("Query Failed"); > > > > while ($row = mysql_fetch_object ($result)) > > > > { > > > > printf ("%s%s %s%s\n", >$row->image_link, > > > > $row->web_url,$row->image_link, $row->web_url); > > > > } > > > > ?> > > > > > > > > > > > > Regards, > > > > > > > > John Bass > > > > > > > > _ > > > > Get your FREE download of MSN Explorer at > > >http://explorer.msn.com/intl.asp > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: >[EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > >-- > > >PHP General Mailing List (http://www.php.net/) > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > >To contact the list administrators, e-mail: >[EMAIL PROTECTED] > > > > > > > > > _ > > Get your FREE download of MSN Explorer at >http://explorer.msn.com/intl.asp > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Need help to create HTML table with 2 columns.
Hi, Thank you for the email. I tried your code, but first column is printing image_link & web_url fields correctly and second column is repeating values of the first column. Other records or rows are printing same way. Regards, John Bass >From: "Jeff Lewis" <[EMAIL PROTECTED]> >Reply-To: "Jeff Lewis" <[EMAIL PROTECTED]> >To: "John Bass" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Re: [PHP] Need help to create HTML table with 2 columns. >Date: Thu, 23 Aug 2001 10:41:08 -0400 > >John, > >Try this: > > >$query = "SELECT image_link, web_url FROM testdata"; >$result = mysql_query ($query) or die ("Query Failed"); >while ($row = mysql_fetch_object ($result)) > { > printf ("".$row->image_links."".$row->web_url." >".$row->image_link."".$row->web_url."\n"); > } > ?> > > >- Original Message - >From: "John Bass" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, August 23, 2001 10:30 AM >Subject: [PHP] Need help to create HTML table with 2 columns. > > > > Hi All, > > > > I am trying to generate a table with two columns. Each column should >print > > 2 fields named image_link and web_url. Have spent over week looking > > documentations and trying different coding but nothing is working. Any >help > > will be greatly appreciated. > > > > > > > $query = "SELECT image_link, web_url FROM testdata"; > > $result = mysql_query ($query) or die ("Query Failed"); > > while ($row = mysql_fetch_object ($result)) > > { > > printf ("%s%s %s%s\n", $row->image_link, > > $row->web_url,$row->image_link, $row->web_url); > > } > > ?> > > > > > > Regards, > > > > John Bass > > > > _ > > Get your FREE download of MSN Explorer at >http://explorer.msn.com/intl.asp > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Need help to create HTML table with 2 columns.
Hi All, I am trying to generate a table with two columns. Each column should print 2 fields named image_link and web_url. Have spent over week looking documentations and trying different coding but nothing is working. Any help will be greatly appreciated. %s%s %s%s\n", $row->image_link, $row->web_url,$row->image_link, $row->web_url); } ?> Regards, John Bass _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session over SSL
Will Session have problem when people browse from a http page to a https page and go out again? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP authenticating and session management
o ic check the IP to prevent . But I have another Q . 1.) I see from www.php.net , people said they will generate a Session ID by themselves srand((double)microtime()*100); $unique_str = md5(rand(0,999)); why not to generate by ourself ? PHP will create itself . 2.) Will Session have problem when people browse from a http page to a https page and go out again? thx ""Christopher Ostmo"" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó 3B337955.15490.27965520@localhost">news:3B337955.15490.27965520@localhost... > Bass??? pressed the little lettered thingies in this order... > > > I have a Q. > > will the Session ID be stolen by hacker when the ID tranfer bewteen client > > and server ? Then can the hacker send the ID to server and veiw the user's > > page ? > > > > Yes. That *can* happen to any non-encrypted transmission that > passes over an untrusted network. It would be difficult to do, so it's > unlikely, but it *can* happen. It would require a packet sniffer on your > network, on the target network or somewhere between. > > If you want to prevent this, you should match session ID with requesting > IP addresss, log both into a database and check both for each page > request. > > If the data being accessed is *that* important that a hacker would go > through that much trouble to hijack a session, you probably should > consider using SSL. > > Christopher Ostmo > a.k.a. [EMAIL PROTECTED] > AppIdeas.com > Meeting cutting edge dynamic > web site needs > > For a good time, > http://www.AppIdeas.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP authenticating and session management
I have a Q. will the Session ID be stolen by hacker when the ID tranfer bewteen client and server ? Then can the hacker send the ID to server and veiw the user's page ? "Jason Stechschulte" <[EMAIL PROTECTED]> ? [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Fri, Jun 22, 2001 at 08:59:54AM +0430, Arash Dejkam wrote: > > simply check $username and bring up the user's page ? but this makes it > > possible for any hacker to send a cookie with username and see that page. I > > know that PHP stores a unique random number for each session but how can I > > check that it matches with the number in the cookie. > > > Why not just check for username this way: > > if(session_is_registered("username")) { >// Do stuff > } > ?> > > Then username has to be registered as a session variable so any hacker > (sic) can't just send a username to see that page. > > -- > Jason Stechschulte > [EMAIL PROTECTED] > -- > echo "Your stdio isn't very std." > -- Larry Wall in Configure from the perl distribution > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to manage login ???
Hi I have a question . At some website which have webmail serivce , they won't use SSL for login . Then how can they protect clinet's information and email ?? they use sessions when login in ?? use sessions is secure ?? Is there another security method in PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to select rows from Mysql with case senstive ??
Hi , By defualt , select rows from Mysql is case insenstive . For exmaple , select * from foo where name = 'PHP' select * from foo where name = 'php' is the same how can i do a queny which select * from foo where name = 'PHP' is success but select * from foo where name = 'php' fail ?? given that name = 'PHP' in the database thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] what's the diff between if($var1) and if(isset($var1)) and if(!empty($var1))???
thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Blank Field Values
""Sam Masiello"" <[EMAIL PROTECTED]> ? [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Did you echo out $CharacterName before your SQL statement to ensure that it > is being set? Or your $SQL variable before calling odbc_do? This might > provide you with some insight as to why the query doesn't return anything. > > HTH > > Sam Masiello > Systems Analyst > Chek.Com > (716) 853-1362 x289 > [EMAIL PROTECTED] > > -Original Message- > From: Jeff Pearson [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 18, 2001 1:05 PM > To: php > Subject: [PHP] Blank Field Values > > OK. Ive been beating my head over this code for a bit. I would appreciate it > if a fresh set of eyes would take a look at this for me. I have the > following code; > > > $connection = odbc_pconnect("XXX","X","XXX"); > $SQL = "SELECT * FROM Bios WHERE CharacterName = '"; > $SQL .= $CharacterName; > $SQL .= "'"; > $QueryResult = odbc_do($connection, $SQL); > $NumberofRows = odbc_num_rows($QueryResult); > $ID = odbc_result($QueryResult, ID); > $NumberofFields = odbc_num_fields($QueryResult); > if ($NumberofRows != 0) > { > $counter = 1; > do > { > $CurrentFieldName = odbc_field_name($QueryResult, $counter); > $CurrentFieldValue = odbc_result($QueryResult, $CurrentFieldName); I don't know the exact solution , but I think it's the problem of the above line since only var $CurrentFieldValue can't be displayed . Have you try $CurrentFieldValue = odbc_result($QueryResult, $counter); and see if it works . ^_^ > echo $CurrentFieldName; > echo "="; > echo $CurrentFieldValue; > echo ","; > $counter = $counter + 1; > } > while ($counter <= $NumberofFields); > echo "endoffields=end"; > } > else > { > echo "No records for that character"; > } > > > > > > > > > > > It results in the following output; > > ID=,CharacterName=,RealName=,FormerAlias=,CurrentAlias=,FormerOccupations=,C > urrentOccupation=,MilitaryExperience=,Education=,LegalStatus=,Identity=,Plac > eofOrigin=,MaritalStatus=,KnownRelatives=,KnownConfidants=,Pets=,KnownAllies > =,MajorEnemies=,BaseofOperations=,Transportation=,PastGroupAffiliates=,Curre > ntGroupAffiliates=,Income=,Height=,Weight=,EyeColor=,HairColor=,OtherFeature > s=,IntelligenceLevel=,Strength=,SpeedReactions=,Stamina=,Agility=,FightingSk > ills=,SpecialSkills=,Handicaps=,OtherPowersandSkills=,Background=,endoffield > s=end > > > > If I run the query with Access, it comes up with the expected row of > information I'm looking for. Can anyone see why Im getting empty values > back? > > > Any help would be GREATLY appreciated. > > Jeff Pearson > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets
I've a web programmer ( just beginner ) using PHP . And I also learn / write java at my university since I'm a student . As I know , developing a page using PHP is much faster than java . Not just 1 / 2 hrs , but maybe one day to a week . Learning Java including servlet takes times , but you can learn php within 1 to 2 days . updating and managing the PHP script is more easlier and faster than servlet . The sercuity of java is better and the network controlling features is better too . The loading time of servlet is faster since the server just need to run the servlet one times and the servlet will leave inside server's memory for further use , but PHP script will be run every times you can control synchronization in servlet but you can't in PHP I suggest you need not to use PHP or servlet on whole site , You can depend on the function of the page PS : I hope can help you . Maybe you know it before but I just want to share it . If I have wrong concept , welcome experts correct it and I can learn from it . THX ""Scott A Winkle"" <[EMAIL PROTECTED]> ? [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Im currently running many scripts myself and other staff members wrote in > PHP for the university. Certain others want to eliminate PHP and make > everything Java based. It is now in the 'debate meeting' stage, so I need > some help. I have done a handful of research already, but im looking for > more info. > > Specifically: > > Pros/Cons of PHP (in general) ...from your experiences > Pros/Cons of PHP in a university environment ...for those working at/with > universities/educational institutions > Case Examples of PHP use in universities, would be especially helpful for > anyone with examples of using PHP with a datatel product. > Any info on using PHP with a UniData database, even if its through ODBC. > Any cases where you found PHP was better at the task than Java, or > vice-versa. Specific examples, etc, would be even better. > > The meeting is scheduled for May 22, so any info prior would be great > > Thanks for the help, > Scott > > > Scott Winkle > Web Developer > Phone: (937) 327-7478 > [EMAIL PROTECTED] > Web Team / Wittenberg University Computing Center > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to check "aBc" different from "abc" ?
thx ^_^ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to send e-mail using PHP with the sender's address is my company's e-mail ??
Hi , My copmany have a website and is hosted on a web server of some web hosting company . I want to use PHP to send e-mail on that server . I use $result = mail("[EMAIL PROTECTED]" , "E-mail Test" , "this e-mail is sent by php") ; to do it . But when I receive the e-mail , the SENDER 's address is the server's domain name ! such as '[EMAIL PROTECTED]' It's a large problem if I send a e-mail to my clients with this cos they won't know who send the e-mail !! how can I send a e-mail with the sender's address is my company's e-mail ??? for exmaple ' [EMAIL PROTECTED] '?? THX A LOT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]