Reputation Activity
-
simplypixie got a reaction from Renaissance-Design in Idiot seeks simple php advice.You are missing an equals sign in your if statement (you need 2 to check for matches:
if ($_SERVER['PHP_SELF'] == "index.php")
-
simplypixie got a reaction from Artaex in Idiot seeks simple php advice.You are missing an equals sign in your if statement (you need 2 to check for matches:
if ($_SERVER['PHP_SELF'] == "index.php")
-
simplypixie got a reaction from Kirk Freeman in KindleAbsolutely - had one for Christmas and am loving it
-
simplypixie got a reaction from Renaissance-Design in Webpage form not writing to database, giving error.If inserting into a database you don't need to specify the auto-incremented id field and passing it a value of NULL will break your script, try changing your query to
$query="INSERT INTO Test (FName, LName, FB) VALUES ('".$FName.", '".$LName.", '".$FB."')";
If you are still getting an error, change your error echo to die(mysql_error) to get the exact error.
-
simplypixie got a reaction from Lee_K in Cron Job'sSounds like you may be on the same hosting as me as I had exactly the same problem / thought a few weeks ago.
Yes, just set up your script with all the different functionality you need as the cronjob doesn't care what is in your script, it is just there to run the set script at the specified times.
-
simplypixie got a reaction from mantis in Creating a website with Multiple Logins HelpI cannot give you a script for this but a few things to do:
Set up a column in the users table called ceremony and use Boolean for the type (0 or 1 where 0=false and 1=true)
When people login select the value of ceremony when you check their login details
Use the value of ceremony (0 or 1) to redirect to the correct area / page as required and if necessary set a session variable based on whether they are invited to the ceremony of not (if you will need to retain this information through various pages of the RSVP)
-
simplypixie got a reaction from person4659 in SQL SELECT statement helpIt doesn't look like you are actually joining the tables anywhere. Somewhere you need to have a key in one table equal to a key in another table to join the tables. Try (you will need to alter the WHere clause to select using the data you want.
SELECT teams.Team, country.Country, leagues.League FROM teams INNER JOIN country ON teams.country_ID = country.Country_ID INNER JOIN leagues ON leagues.League_ID=teams.League_ID WHERE teams.Country_ID=6 AND teams.League_ID=6
-
simplypixie got a reaction from Skateside in Learning to code; where now?The best way to learn is to get coding your own site / pages using what you have learnt so far.
What do you want to learn next? More HTML, CSS, Javascript, PHP??
-
simplypixie got a reaction from apollo-articles in Problems with container alignment - HELP!Number 1 - the text is held (for some unknown reason) in an image so you need to reduce the width of the image to match the width of containing box below.
Number 2 - the div textwidget in the main css has top margin set to 0 so you need to change it, plus your css seems to have an extra body tag:
body body ,div#leftside.textwidget { background-color:#eceffc; }
Change the above to (I have just used a random number of pixels that you will need to tweak):
body, div#leftside.textwidget { background-color:#eceffc; } div#leftside.textwidget: margin-top: 10px;
You are also redeclaring your style within the page adding an iframe element so all that needs sorting.
Numbers 3 & 4 - I can't see a problem in Chrome but the height of your iframe is set to 1050px which is huge and from your screenshot that is what you are seeing, the whole height of the iframe which is overflowing out of your main content container also creating the whitespace.
-
simplypixie got a reaction from Renaissance-Design in How do I change a field to not have to be unique using phpMyadmin?If you view the structure of the table you should see (below the list of columns) a heading saying Indexes. Below this you should see the column in question and you just need to drop the column from the indexing list (if you still want to index on the column but without it being unique you will need to set indexing on the column again).
Hope that helps.
-
simplypixie got a reaction from Renaissance-Design in Going Insane Now....Need HelpWhen you say all your old pages are showing on the net, do you mean when you search in Google (for instance) of within your actual website? If the first then that is because Google has to do another trawl of the web to update first and this happens on set timescales and in the meantime what will appear are your cached pages (the ones stored by Google to display in search results). You will have to wait for Google to do it's next 'trawl'.
Meta tags shouldn't be formatted in any way, formatting is for HTML to tell the browser how to display your content/page/website etc and these tags have no place in the meta tags in the head section of your pages.
Header tags (i.e. h1, h2 etc) don't have to go at the very top of your pages in place of your banner. They should be used as titles for the sections on each page in order of importance like you would find headings in a newspaper.