User Profile

Collapse

Profile Sidebar

Collapse
jamesmoore
jamesmoore
Last Activity: Oct 24 '11, 12:22 AM
Joined: Jan 13 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jamesmoore
    started a topic How do I make the div tags inline?

    How do I make the div tags inline?

    Hi,

    How do I make it so the div tags are inline not on top of each other?

    Code:
    .center { 
    
    margin: 0 auto; float: none; }
    
    .tab-unselected {
      -moz-border-radius: 3px;
        border-radius: 3px;
        font: 13px helvetica;
        color: #585858;
        height: 15px;
        margin: 5px 5px 5px 5px;
        padding: 5px 5px 5px 5px;
        position: relative;
        width:
    ...
    See more | Go to post
    Last edited by Niheel; Oct 12 '11, 10:33 PM. Reason: The reason we ask to post code is we don't know if that link will exist in the future for others to reference

  • Search results with drop down button to show more information

    Hi there,

    I am making a job board and I want the results to be listed with the Job Title and Location only on show WITH a button on the side so when clicked more of the search result's (Job's information) is revealed about that job.

    Here is an image of what I mean?

    What should I be looking for?

    I have searched drop down box/menu but it isn't what I want

    HELP!!

    Thanks,...
    See more | Go to post
    Last edited by acoder; Sep 9 '11, 05:14 PM.

  • Ah thank you will this tell me what is wrong then with my script when I execute the search?
    See more | Go to post

    Leave a comment:


  • jamesmoore
    started a topic PHP Match two fields in a row via my search
    in PHP

    PHP Match two fields in a row via my search

    Hi

    I have entered data into my table and now I want to retrieve it via a search engine on my site:

    fourwaysdp.co.u k/seaside.php

    I have two search boxes because I want to only retrieve rows that match the search terms.

    I want each search box to represent each column in my table.

    At the moment if i search: 'trainee' in one box and 'london' in the other all rows with trainee are displayed...
    See more | Go to post

  • jamesmoore
    started a topic PHP Two Search boxes
    in PHP

    PHP Two Search boxes

    Hi

    I have two search boxes with one submit button

    I want one search box to search one table in my database and the other search box to search another table in my database

    Then If there is a match between the two I want the results to be displayed

    THANKS!

    James

    Code:
    <form action="today.php" method="post">
    <input type="text"
    ...
    See more | Go to post

  • Ok I removed the FULL and now results show up BUT no matter what data I enter all the data from my tables show up. How do I filter it so only ones that match what I have typed in the search box

    http://fourwaysdp.co.uk/today.php...
    See more | Go to post

    Leave a comment:


  • Ah thank you,

    I have two search boxes at the bottom of fourwaysdp.co.u k/today.php

    I want to FULL JOIN some of the columns from the tables I have created (job_tit, job_loc)
    I have written the code but it still doesnt show any results
    What have I done wrong?

    Code:
    <?php
    if(strlen(trim($_POST['search'])) > 0) {
    //all of your php code for the search
    
       $search = "%"
    ...
    See more | Go to post

    Leave a comment:


  • jamesmoore
    started a topic Trying to Full Join two tables in a search box
    in PHP

    Trying to Full Join two tables in a search box

    Hi,

    I have two tables job_tit and job_loc

    I want to join the information from the tables into my search results.

    But when i search my database and click submit nothing happens.

    http://fourwaysdp.co.uk/today.php

    Code:
    <html>
    <Head>
          <title>Contact form</title>
          <style type="text/css">
                      table{
    ...
    See more | Go to post

  • I have now added the " but I get this error message now:

    Fatal error: Function name must be a string in /websites/123reg/LinuxPackage21/fo/ur/wa/fourwaysdp.co.u k/public_html/todayprocess.ph p on line 9

    Code:
    <?php
    $dbhost="";
    $dbuser="";
    $dbpass="";
    $dbname="";
     
    $con=mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to the
    ...
    See more | Go to post

    Leave a comment:


  • Help on how to insert data into two different tables?

    Hi,

    I am trying to insert form data into two tables in my database but I keep getting this error:

    Parse error: syntax error, unexpected T_STRING in /websites/123reg/LinuxPackage21/fo/ur/wa/fourwaysdp.co.u k/public_html/process.php on line 18

    What am I doing wrong?

    Code:
    <?php
    $dbhost="";
    $dbuser="";
    $dbpass="";
    $dbname="";
    ...
    See more | Go to post

  • Ah thats great thanks!

    So to code target.php what kind of coding would be needed for that?
    As target.php would be used for every results link how do I make it so each target.php refers to the individual result's information?

    Thanks!

    James
    See more | Go to post

    Leave a comment:


  • http://fourwaysdp.co.uk/seaside.php

    This is the mock up input and output forms I am using here to make it clearer to you....
    See more | Go to post

    Leave a comment:


  • I have tried to put it all the places i think it could be but It still returns no results...
    Is it a case of just copying lines 8 and 9 and placing them? Or does it involve including more code?
    Sorry to be a pain! I have only started using php since Sunday!

    Thanks again!




    Code:
    <?php
    if(strlen(trim($_POST['search'])) > 0) {
    //all of your php code for the search
    $v_name=$_POST['name'];
    ...
    See more | Go to post

    Leave a comment:


  • I have tried to include this but I am so confused as where to put it

    <?php
    if(strlen(trim( $_POST['search'])) > 0) {
    //all of your php code for the search

    $search = "%" . $_POST["search"] . "%";

    mysql_connect ("", "", "");
    mysql_select_db ("");
    if (!empty($_POST["search_str ing"]))
    {...
    See more | Go to post

    Leave a comment:


  • Referring back to POST
    this is the script I use for posting information to my database:

    Code:
    <?php
    
    // contact to database
    $connect = mysql_connect("", "", "") or die ("Error , check your server connection.");
    mysql_select_db("");
     
    //Get data in local variable
    $v_name=$_POST['name'];
    $v_location=$_POST['location'];
    $v_msg=$_POST['msg'];
    ...
    See more | Go to post

    Leave a comment:


  • [deleted post deleted post deleted post]
    See more | Go to post

    Leave a comment:


  • I have submitted examples into my database like the one above:

    name: shannon
    location: bexleyheath

    So I am typing the correct text in. What kind of coding am I needing/missing instead of

    Code:
    $query = "SELECT name,location,msg FROM contact WHERE name = '$name' AND location = '$location' ";
    The post parts of my script are parts another web developer told me to put in to...
    See more | Go to post

    Leave a comment:


  • How can I make each search result clickable and have its own page?

    Hi there,

    I am planning a job board and when a job is searched for I want the jobs listed like the example below:

    Trainee Assistant Kent
    Manager Essex

    Then I want the visitor to be able to click on the search result so it then directs to a page for that particular job where more information about the job is shown (more information as in the information in the job's row...
    See more | Go to post

  • One tutorial said to do this:

    Code:
    $query = "SELECT name,location,msg FROM contact WHERE name = '$searchname' AND location = '$searchlocation' ";
    AND:

    One tutorial said to do this:

    Code:
    $query = "SELECT name,location,msg FROM contact WHERE name = '$name' AND location = '$location' ";
    But that also hasn't worked...
    See more | Go to post

    Leave a comment:


  • Ah right my mistake sorry!

    Ok now I have updated the same section BUT now only 'shannon' and 'bexleyheath' are returned from the search box. No matter what I type in the search box the only results are shannon and bexleyheath.

    How is this part fixed?

    Thank you so much for the help! Nearly there!

    James

    Code:
     $query = "SELECT name,location,msg FROM contact WHERE name = 'shannon'
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...