Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:20:28+00:00 2026-06-12T09:20:28+00:00

I am lost on what to put in the first line of my code

  • 0

I am lost on what to put in the first line of my code here. If i have any form of text in my field i want it to output <p> say hi! </p> What would i put in my first line of code to make that true? If there is text this will be true if there is no text it will be ignored.

<?php if ($row['userid'] == What do i put here? ): ?>
 <p> say hi! </p>
<?php endif; ?>       

I know how to do it with number values but not text. So im stuck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:20:28+00:00Added an answer on June 12, 2026 at 9:20 am

    You can do

    <?php if ($row['userid'] != "" ): ?>
     <p> say hi! </p>
    <?php endif; ?>  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have two sequences returning integers 1 to 5. The first returns
I have a form with an array of text fields. The user (through javascript)
I have finished my first Django/Python Project and now I need to put the
it's my first post in here, but you have been helping me indirectly in
I have lost the debug panel/toolbar (with the yellow curly arrow step tools) in
I may be hopelessly lost here, but having come from a MVC.NET world I
I'm sort of lost on this. I have an application that is reading from
I'm a bit lost with Subversion (1.5+) here: I modified the trunk in my
I am lost. I am trying to release my first iPhone app, and the
I have a Menu and Submenu structure in Silverlight, and I want the submenu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.