Jump to content

Need a little help with some code from a more experienced php coder


PHPlandman

Recommended Posts

Hello there i need a little help as im very new to php and i need a little help on something. I need some code that will display an error message or a html form depending on what is or isnt in the `value` feild of a table in a mysql database

 

and these are the values i have to use in the table of the mysql database. Well the ones i wish to use anyway

 

`user_id``value``created_at`

 

these are the total that can be used

 

`id``field_id``user_id``value``created_at`

 

What it is i want to do is if the value of `value` is empty show a html form and if the value of `value` has data in it then show/echo an error message that i can use a CSS <DIV> class in saying "Sorry you already have `value` that you created on `created_at`

 

Thanks for the help in advance!  ::)

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.