Jump to content

Recommended Posts

I could be wrong, but to call out stuff in the database you need to use the select statement in php and all that stuff.

 

*~I did not try it!~*

 

<?php

$selectmovie = mysql_query("SELECT * FROM `table here` WHERE `column name here` = 'movie here'");

echo $selectmovie;
?>

Link to comment
https://forums.phpfreaks.com/topic/130202-help/#findComment-675269
Share on other sites

I could be wrong, but to call out stuff in the database you need to use the select statement in php and all that stuff.

 

*~I did not try it!~*

 

<?php

$selectmovie = mysql_query("SELECT * FROM `table here` WHERE `column name here` = 'movie here'");

echo $selectmovie;
?>

Lol, thanks for the reply but I don't think you understand my question clearly.

Link to comment
https://forums.phpfreaks.com/topic/130202-help/#findComment-675278
Share on other sites

my brains not working tonight but heres a couple of ideas

 

-regex in the query identifying the first character as numeric or not (not for sure if mysql supports php regex)

 

- return all the movie titles and shorten them all to 1 character and run is_numeric() on them, but, im really tired and cant remember how to shorten a string, nor can i figure out how to get those results back to the query to get you the right movie titles in their entirety

 

//should get you thinking

 

EDIT: regex is your best bet, query the db for all results, run a preg_match and foreach the results but im terrible at regex so dont ask me

 

//dunno why this got moved

Link to comment
https://forums.phpfreaks.com/topic/130202-help/#findComment-675290
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.