Jump to content

AngelG107

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.2shared.org

Profile Information

  • Gender
    Not Telling

AngelG107's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm sorry but I have no experience with AJAX or Javascript. I tried to help anyways. Regards.
  2. $display = '1'; $_SESSION['display']=$display ; echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=http://www.example.com/home.php\">";
  3. Alright you could something like this : $display = '1'; $_SESSION['display']=$display ; echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=http://www.example.com/lpanel.php\">"; Remember to change your domain name and all that so it works properly, that's going to refresh the page after the session changes. Regards.
  4. <?php if( $_SESSION['display'] == 1 ) { // this is a PHP comment, // the display variable in the session is equal to 1 echo "<a href=\"javascript:ajaxpage('addcustomer.php', 'body');\"><span><img src=\"images/user_add.gif\" /> Add Customer</span></a>"; } ?> I guess you meant to try out the '==' instead of '=', not to mention if you want to print a string to the browser you have to use either the echo function or the print function. The echo function is faster than the print function though. Regards.
  5. MySQLI Overview : http://www.php.net/manual/en/mysqli.overview.php MySQLi was developed to take advantage of new features found in MySQL systems. It provides the same functions and above. If i were you, i would learn both. I can bet it's gonna be used soon. Not to mention, Oracle and PostgreSQL are important too. At least at my country, the most used database system are Oracle and PostgresSQL.
  6. Actually the id in an input field is not necessary even though you're using Javascript to refer to it, that could be done using : document.forms[0].fieldname.value = "Field Value"; You can remove the id, and simply refer to it like that in Javascript, and then in PHP,ASP, etc... you can refer to it with the name value. PS : forms is an array so the '0' is referring to the first form field in the HTML file.
  7. you can try something like this : <?php $id_val = 1; ?> <form action="delete.php" method="POST"> <input type="hidden" name="del_id" value="<?php echo $id_val; ?>" > </form> that's the HTML form , it should go in the view.php file <?php // add your db connection procedure here. $id = $_POST['del_id']; $query = "DELETE FROM comments WHERE id='$id'"; mysql_query($query); ?> this should go on the delete.php file
  8. The reason that why you're not getting any message displayed it's because you need to redirect where the message will be outputted, by the default they're outputted to the Terminal. Simply do something like this : <?php $command = "yum -y install squid"; //this is a testing command, it will install squid in the server. exec($command); ?> Replace the value for the correct one, and i can assure it'll work.
  9. AngelG107

    date field

    Well, I'm not sure about what you're looking for, but here's a small example about how to format the current date like that. <?php $year = date("Y"); $month = date("m"); $year_formated = $year[2] . $year[3]; if($month == "01"){$month_formated = "Jan";} if($month == "02"){$month_formated = "Feb";} if($month == "03"){$month_formated = "Mar";} if($month == "04"){$month_formated = "Apr";} if($month == "05"){$month_formated = "May";} if($month == "06"){$month_formated = "Jun";} if($month == "07"){$month_formated = "Jul";} if($month == "08"){$month_formated = "Aug";} if($month == "09"){$month_formated = "Sep";} if($month == "10"){$month_formated = "Oct";} if($month == "11"){$month_formated = "Nov";} if($month == "12"){$month_formated = "Dec";} $date_formated = $month_formated . "-" . $year_formated; echo $date_formated; // THERE YOU GO, YOU HAVE THE DATE FORMATED LIKE THAT IN THE date_formated VARIABLE ?> I hope it helps you out somehow. If you need more help, just send me a message.
  10. The best thing to do would be contacting your web host, tell them about this issue. I guess simply reinstalling Zend Optimizer would do, I'm not sure though. May i receive a link to the website? or any extra information?
  11. I took the freedom to edit your robots.txt file, try this : User-agent: * Disallow: /eshot/ Disallow: /newsletters/ Disallow: /Connections/ Disallow: /libraries/ Disallow: /resources/ Disallow: /sifr/ Disallow: /SpryAssets/ That's basically is going to do all you're looking for, it will disallow those directories in all search engines,
  12. <?php $server = "localhost"; //replace this value $user = "root"; //replace this value $pass = ""; //replace this value $db = "xpressde"; //replace this value $table_name = "clients"; //replace this value $field_name = "firstname"; //replace this value mysql_connect($server,$user,$pass); mysql_select_db($db); $query = "UPDATE $table_name SET $field_name=NULL"; mysql_query($query); ?> I already tried out that code in my local server, and it works perfectly. If it doesn't work, it should be something related to the server. Tell them to check the logs, if the server is being run on linux, they should find all the logs at : /var
  13. I would recommend you using a CMS (content management system) like Haku mentioned... If i were you, i would go with one of the following : Joomla - http://www.joomla.org/ Drupal - http://drupal.org/ If you want to build a blog, you can try out wordpress : http://wordpress.org/ BUT, you can also build your own CMS using PHP and any database system (this is the hardest option) .
  14. Hello ... i guess someone already mentioned that you cannot do this with HTML, I would recommend you using PHP and any graphics library that would allow you editing them. Here's a link to the GD library : http://www.libgd.org/Main_Page But, you could also try something like : <html> <head> <style type="text/css"> img { position:absolute; left:0px; top:0px; z-index:-1; } h1{color:white;} </style> </head> <body> <h1>SAMPLE SAMPLE SAMPLE SAMPLE <br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/> SAMPLE SAMPLE SAMPLE SAMPLE<br/></h1> <img src="img.jpg" /> </body> </html> I hope i helped you somehow.
  15. I guess you can add me on MSN if you want, i'll send you a PM
×
×
  • 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.